#[non_exhaustive]pub enum Algorithm {
Pbkdf2Sha256,
Pbkdf2Sha512,
}Expand description
PBKDF2 variants.
Variants (Non-exhaustive)§
This enum is marked as 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.
Implementations§
source§impl Algorithm
impl Algorithm
sourcepub const PBKDF2_SHA256_IDENT: Ident<'static> = _
pub const PBKDF2_SHA256_IDENT: Ident<'static> = _
PBKDF2 (SHA-256) algorithm identifier
sourcepub const PBKDF2_SHA512_IDENT: Ident<'static> = _
pub const PBKDF2_SHA512_IDENT: Ident<'static> = _
PBKDF2 (SHA-512) algorithm identifier
Trait Implementations§
source§impl Default for Algorithm
impl Default for Algorithm
source§fn default() -> Self
fn default() -> Self
Default suggested by the OWASP cheat sheet:
Use PBKDF2 with a work factor of 600,000 or more and set with an internal hash function of HMAC-SHA-256.
source§impl Ord for Algorithm
impl Ord for Algorithm
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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: 1 byte
Size for each variant:
Pbkdf2Sha256: 0 bytesPbkdf2Sha512: 0 bytes