decodeDhSpki
fn
DHPublicKey decodeDhSpki(const(ubyte)[] der)Decodes a DH public key from DER-encoded SubjectPublicKeyInfo (SPKI).
Parameters
der | The DER-encoded SPKI bytes. |
Returns
The decoded DH public key.
Throws
CryptoException if the DER is malformed or algorithm is not DH.