Skip to main content

public_key_to_bytes

Function public_key_to_bytes 

Source
pub fn public_key_to_bytes(key: &RsaPublicKey) -> Result<Vec<u8>, CryptError>
Expand description

Converts an RSA public key to DER-encoded X.509 format bytes.

This is the format sent over the network.