pub struct Kmac { /* private fields */ }
Expand description
The KMAC
pseudo-random functions defined in SP800-185
.
The KECCAK Message Authentication Code (KMAC
) algorithm is a PRF
and keyed hash function based
on KECCAK. It provides variable-length output, and unlike SHAKE
and cSHAKE
, altering the
requested output length generates a new, unrelated output. KMAC has two variants, KMAC128
and
KMAC256
, built from cSHAKE128
and cSHAKE256
, respectively. The two variants differ somewhat in
their technical security properties.
§Usage
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["kmac"] }
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kmac
impl RefUnwindSafe for Kmac
impl Send for Kmac
impl Sync for Kmac
impl Unpin for Kmac
impl UnwindSafe for Kmac
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)