pub struct Argon2Kdf { /* private fields */ }Expand description
The production key deriver: Argon2id with compiled-in cost parameters.
The parameters are held as fields rather than read from the constants at use
time only so that Argon2Kdf::low_cost_for_tests can exist; no public
constructor accepts them.
Implementations§
Source§impl Argon2Kdf
impl Argon2Kdf
Sourcepub fn default_secure() -> Self
pub fn default_secure() -> Self
Builds a deriver with the parameters this project considers secure: 128 MiB of memory, 4 passes and 2 lanes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argon2Kdf
impl RefUnwindSafe for Argon2Kdf
impl Send for Argon2Kdf
impl Sync for Argon2Kdf
impl Unpin for Argon2Kdf
impl UnsafeUnpin for Argon2Kdf
impl UnwindSafe for Argon2Kdf
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more