decodeDhPkcs8
fn
DHPrivateKey decodeDhPkcs8(const(ubyte)[] der)Decodes a DH private key from PKCS#8 format (PrivateKeyInfo).
Parameters
der | The DER-encoded PKCS#8 bytes. |
Returns
The decoded DH private key.
Throws
CryptoException if the DER is malformed or algorithm is not DH.