decodeDhSpki

fnDHPublicKey decodeDhSpki(const(ubyte)[] der)

Decodes a DH public key from DER-encoded SubjectPublicKeyInfo (SPKI).

Parameters

derThe DER-encoded SPKI bytes.

Returns

The decoded DH public key.

Throws

CryptoException if the DER is malformed or algorithm is not DH.