Trait rsa::PublicKeyEncoding [−][src]
Provided methods
fn to_pkcs1(&self) -> Result<Vec<u8>>
[src]
Encodes a Public key to into PKCS1
bytes.
This data will be base64
encoded which would be used
following a -----BEGIN <name> PUBLIC KEY-----
header.
https://tls.mbed.org/kb/cryptography/asn1-key-structures-in-der-and-pem
fn to_pkcs8(&self) -> Result<Vec<u8>>
[src]
Encodes a Public key to into PKCS8
bytes.
This data will be base64
encoded which would be used
following a -----BEGIN PUBLIC KEY-----
header.
https://tls.mbed.org/kb/cryptography/asn1-key-structures-in-der-and-pem