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 SubjectPublicKeyInfo
s.
Required Associated Types§
type AlgorithmId: AlgorithmIdentifier
type SubjectPublicKey: AsRef<[u8]>
Required Methods§
Sourcefn algorithm_id(&self) -> Self::AlgorithmId
fn algorithm_id(&self) -> Self::AlgorithmId
Returns the AlgorithmIdentifier
for this public key.
Sourcefn public_key(&self) -> Self::SubjectPublicKey
fn public_key(&self) -> Self::SubjectPublicKey
Returns the encoded public key.