decodeDhPkcs8

fnDHPrivateKey decodeDhPkcs8(const(ubyte)[] der)

Decodes a DH private key from PKCS#8 format (PrivateKeyInfo).

Parameters

derThe DER-encoded PKCS#8 bytes.

Returns

The decoded DH private key.

Throws

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