pub struct HmacHash { /* private fields */ }Expand description
HMAC-SHA256 hash strategy — deterministic by construction.
Unlike the other strategies, HmacHash carries its own 32-byte key and
computes HMAC-SHA256(key, original) directly. The caller-provided
entropy is ignored. This makes the output deterministic regardless
of the EntropyMode used by StrategyGenerator.
The output is a lowercase hex string, optionally truncated to
output_len characters (default: 32).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HmacHash
impl RefUnwindSafe for HmacHash
impl Send for HmacHash
impl Sync for HmacHash
impl Unpin for HmacHash
impl UnsafeUnpin for HmacHash
impl UnwindSafe for HmacHash
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> 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