createSubjectPublicKeyInfo static method
Implementation
static ASN1Sequence createSubjectPublicKeyInfo(RSAPublicKey publicKey) {
final seq = ASN1Sequence();
seq.add(createAlgorithmIdentifier(rsaEncryption));
final keySeq = ASN1Sequence();
keySeq.add(ASN1Integer(publicKey.modulus));
keySeq.add(ASN1Integer(publicKey.exponent));
seq.add(ASN1BitString(keySeq.encodedBytes));
return seq;
}