encodeX509spki method
Encode an RSA public key in the X.509 subjectPublicKeyInfo format.
Note: this format does not support comments/properties.
Programs normally use encode
method from the PublicKeyExt extension,
with the appropriate format, which will invoke this method.
Implementation
String encodeX509spki() {
final spki =
SubjectPublicKeyInfo(_rsaAlgorithmOid, [ASN1Null()], _pkcs1bytes());
final fmt = TextualEncoding(_rsaPublicX509spkiLabel, spki.encode());
return fmt.encode();
}