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.
HMAC with SHA1
HMAC with SHA-256
Implementations
impl Pbkdf2Prf
[src]
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 Clone for Pbkdf2Prf
[src]fn clone(&self) -> Pbkdf2Prf
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default 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 StructuralEq for Pbkdf2Prf
[src]
impl StructuralEq for Pbkdf2Prf
[src]impl StructuralPartialEq for Pbkdf2Prf
[src]
impl StructuralPartialEq for Pbkdf2Prf
[src]impl<'a> TryFrom<AlgorithmIdentifier<'a>> for Pbkdf2Prf
[src]
impl<'a> TryFrom<AlgorithmIdentifier<'a>> for Pbkdf2Prf
[src]Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.