SubjectPublicKeyInfoOwned

Type Alias SubjectPublicKeyInfoOwned 

Source
pub type SubjectPublicKeyInfoOwned = SubjectPublicKeyInfo<Any, BitString>;
Available on crate feature alloc only.
Expand description

SubjectPublicKeyInfo with Any algorithm parameters, and BitString params.

Aliased Type§

pub struct SubjectPublicKeyInfoOwned {
    pub algorithm: AlgorithmIdentifier<Any>,
    pub subject_public_key: BitString,
}

Fields§

§algorithm: AlgorithmIdentifier<Any>

X.509 AlgorithmIdentifier for the public key type

§subject_public_key: BitString

Public key data

Implementations§

Source§

impl SubjectPublicKeyInfoOwned

Source

pub fn from_key<T>(source: T) -> Result<Self>
where T: EncodePublicKey,

Create a SubjectPublicKeyInfoOwned from any object that implements EncodePublicKey.

Trait Implementations§

Source§

impl OwnedToRef for SubjectPublicKeyInfoOwned

Source§

type Borrowed<'a> = SubjectPublicKeyInfo<AnyRef<'a>, BitStringRef<'a>>

The resulting type referencing back to Self
Source§

fn owned_to_ref(&self) -> Self::Borrowed<'_>

Creates a new object referencing back to the self for storage

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 112 bytes