decodeRsaSpki

fnRSAPublicKey decodeRsaSpki(const(ubyte)[] der)

Decodes an RSA public key from DER-encoded SubjectPublicKeyInfo (SPKI).

Parameters

derThe DER-encoded SPKI bytes.

Returns

The decoded RSA public key.

Throws

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