Trait PublicKeyData
pub trait PublicKeyData {
// Required methods
fn der_bytes(&self) -> &[u8] ⓘ;
fn algorithm(&self) -> &'static SignatureAlgorithm;
// Provided method
fn subject_public_key_info(&self) -> Vec<u8> ⓘ { ... }
}
Expand description
The public key data of a key pair
Required Methods§
fn algorithm(&self) -> &'static SignatureAlgorithm
fn algorithm(&self) -> &'static SignatureAlgorithm
The algorithm used by the key pair
Provided Methods§
fn subject_public_key_info(&self) -> Vec<u8> ⓘ
fn subject_public_key_info(&self) -> Vec<u8> ⓘ
The public key data in DER format
The key is formatted according to the X.509 SubjectPublicKeyInfo struct. See RFC 5280 section 4.1.