pub struct Kmac256Key { /* private fields */ }Expand description
Secret KMAC256 key-derivation key.
Implementations§
Source§impl Kmac256Key
impl Kmac256Key
Sourcepub fn from_slice(input: &[u8]) -> Result<Kmac256Key, CryptoError>
pub fn from_slice(input: &[u8]) -> Result<Kmac256Key, CryptoError>
Constructs a KMAC256 key after enforcing the minimum security-strength length.
§Errors
Returns a typed KDF error when input is outside the accepted key
length range.
Trait Implementations§
Source§impl Drop for Kmac256Key
impl Drop for Kmac256Key
Auto Trait Implementations§
impl Freeze for Kmac256Key
impl RefUnwindSafe for Kmac256Key
impl Send for Kmac256Key
impl Sync for Kmac256Key
impl Unpin for Kmac256Key
impl UnsafeUnpin for Kmac256Key
impl UnwindSafe for Kmac256Key
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