SubjectPublicKeyInfo

Trait SubjectPublicKeyInfo 

Source
pub trait SubjectPublicKeyInfo {
    type AlgorithmId: AlgorithmIdentifier;
    type SubjectPublicKey: AsRef<[u8]>;

    // Required methods
    fn algorithm_id(&self) -> Self::AlgorithmId;
    fn public_key(&self) -> Self::SubjectPublicKey;
}
Expand description

A trait for objects which represent ASN.1 SubjectPublicKeyInfos.

Required Associated Types§

Required Methods§

Source

fn algorithm_id(&self) -> Self::AlgorithmId

Returns the AlgorithmIdentifier for this public key.

Source

fn public_key(&self) -> Self::SubjectPublicKey

Returns the encoded public key.

Implementors§