encodeRsaPkcs1
fn
ubyte[] encodeRsaPkcs1(RSAPrivateKey key)Encodes an RSA private key in PKCS#1 format.
Format: SEQUENCE { version, n, e, d, p, q, dP, dQ, qInv }
Parameters
key | The RSA private key to encode. |
Returns
The DER-encoded PKCS#1 RSAPrivateKey bytes.