Enum pkcs5::pbes2::Kdf[][src]

#[non_exhaustive]pub enum Kdf<'a> {
    Pbkdf2(Pbkdf2Params<'a>),
}

Password-based key derivation function.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pbkdf2(Pbkdf2Params<'a>)

Password-Based Key Derivation Function 2 (PBKDF2).

Implementations

impl<'a> Kdf<'a>[src]

pub fn oid(&self) -> ObjectIdentifier[src]

Get the ObjectIdentifier (a.k.a OID) for this algorithm.

pub fn pbkdf2(&self) -> Option<&Pbkdf2Params<'a>>[src]

Get Pbkdf2Params if it is the selected algorithm.

pub fn is_pbkdf2(&self) -> bool[src]

Is the selected KDF PBKDF2?

Trait Implementations

impl<'a> Clone for Kdf<'a>[src]

impl<'a> Debug for Kdf<'a>[src]

impl<'a> Eq for Kdf<'a>[src]

impl<'a> Message<'a> for Kdf<'a>[src]

impl<'a> PartialEq<Kdf<'a>> for Kdf<'a>[src]

impl<'a> StructuralEq for Kdf<'a>[src]

impl<'a> StructuralPartialEq for Kdf<'a>[src]

impl<'a> TryFrom<AlgorithmIdentifier<'a>> for Kdf<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<Any<'a>> for Kdf<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> Send for Kdf<'a>[src]

impl<'a> Sync for Kdf<'a>[src]

impl<'a> Unpin for Kdf<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Decodable<'a> for T where
    T: TryFrom<Any<'a>, Error = Error>, 
[src]

impl<'a, M> Encodable for M where
    M: Message<'a>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, M> Tagged for M where
    M: Message<'a>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.