Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

AlgorithmIdentifierRef

Type Alias AlgorithmIdentifierRef 

Source
pub type AlgorithmIdentifierRef<'a> = AlgorithmIdentifier<AnyRef<'a>>;
Expand description

AlgorithmIdentifier reference which has AnyRef parameters.

Aliased Type§

pub struct AlgorithmIdentifierRef<'a> {
    pub oid: ObjectIdentifier,
    pub parameters: Option<AnyRef<'a>>,
}

Fields§

§oid: ObjectIdentifier

Algorithm OID, i.e. the algorithm field in the AlgorithmIdentifier ASN.1 schema.

§parameters: Option<AnyRef<'a>>

Algorithm parameters.

Trait Implementations§

Source§

impl<'a> From<Pbkdf2Prf> for AlgorithmIdentifierRef<'a>

Source§

fn from(prf: Pbkdf2Prf) -> Self

Converts to this type from the input type.
Source§

impl<'a> TryFrom<EncryptionScheme<'a>> for AlgorithmIdentifierRef<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(scheme: EncryptionScheme<'a>) -> Result<Self>

Performs the conversion.