encodeRsaSpki
fn
ubyte[] encodeRsaSpki(RSAPublicKey key)Encodes an RSA public key as a DER-encoded SubjectPublicKeyInfo (SPKI).
Format: SEQUENCE { SEQUENCE { OID rsaEncryption, NULL }, BIT STRING { SEQUENCE { INTEGER n, INTEGER e } } }
Parameters
key | The RSA public key to encode. |
Returns
The DER-encoded SPKI bytes.