Enum pkcs5::pbes2::Pbkdf2Prf[][src]

#[non_exhaustive]
pub enum Pbkdf2Prf {
    HmacWithSha1,
    HmacWithSha256,
}

Pseudo-random function used by PBKDF2.

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.
HmacWithSha1

HMAC with SHA1

HmacWithSha256

HMAC with SHA-256

Implementations

impl Pbkdf2Prf[src]

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

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

Trait Implementations

impl Clone for Pbkdf2Prf[src]

impl Copy for Pbkdf2Prf[src]

impl Debug for Pbkdf2Prf[src]

impl Default for Pbkdf2Prf[src]

Default PRF as specified in RFC 8018 Appendix A.2:

prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1

Note that modern usage should avoid the use of SHA-1, despite it being the “default” here.

impl Encodable for Pbkdf2Prf[src]

impl Eq for Pbkdf2Prf[src]

impl<'a> From<Pbkdf2Prf> for AlgorithmIdentifier<'a>[src]

impl PartialEq<Pbkdf2Prf> for Pbkdf2Prf[src]

impl StructuralEq for Pbkdf2Prf[src]

impl StructuralPartialEq for Pbkdf2Prf[src]

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Pbkdf2Prf

impl Sync for Pbkdf2Prf

impl Unpin for Pbkdf2Prf

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<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.