decodeEcdsaPrivateKey

fnECDSAPrivateKey decodeEcdsaPrivateKey(const(ubyte)[] der)

Decodes an ECDSA private key from SEC 1 / RFC 5915 format.

Parameters

derThe DER-encoded ECPrivateKey bytes.

Returns

The decoded ECDSA private key.

Throws

CryptoException if the DER is malformed.