decodePKCS1RSAPublicKey()

Decodes a PKCS#1 ASN.1 DER encoded public key as specified in RFC 8017.

Throws an Error if the public key is invalid.

Definition

function decodePKCS1RSAPublicKey(pkcs1: Uint8Array): RSAPublicKey;