pub enum Argon2Algorithm {}
Expand description
Argon2 algorithm identifier for use with the KDF trait system
This enum serves as a type marker for the Argon2 algorithm when used with the generic key derivation function interfaces.
Trait Implementations§
Source§impl KdfAlgorithm for Argon2Algorithm
impl KdfAlgorithm for Argon2Algorithm
Source§const MIN_SALT_SIZE: usize = 8usize
const MIN_SALT_SIZE: usize = 8usize
Minimum salt size in bytes
Source§const DEFAULT_OUTPUT_SIZE: usize = 32usize
const DEFAULT_OUTPUT_SIZE: usize = 32usize
Default output size in bytes
Source§const ALGORITHM_ID: &'static str = "argon2"
const ALGORITHM_ID: &'static str = "argon2"
Static algorithm identifier for compile-time checking
Source§fn security_level() -> SecurityLevel
fn security_level() -> SecurityLevel
Security level provided by this KDF
Source§impl<'a, const S: usize> KdfOperation<'a, Argon2Algorithm> for Argon2Builder<'a, S>
impl<'a, const S: usize> KdfOperation<'a, Argon2Algorithm> for Argon2Builder<'a, S>
Source§fn with_output_length(self, len: usize) -> Self
fn with_output_length(self, len: usize) -> Self
Set the desired output length
Auto Trait Implementations§
impl Freeze for Argon2Algorithm
impl RefUnwindSafe for Argon2Algorithm
impl Send for Argon2Algorithm
impl Sync for Argon2Algorithm
impl Unpin for Argon2Algorithm
impl UnwindSafe for Argon2Algorithm
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