pub struct KangarooTwelveXof { /* private fields */ }
Expand description
The KangarooTwelve
extendable-output function defined here
.
§Usage
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["k12"] }
§Example
let input = b"hello world";
let mut output = [0u8; 64];
let mut hasher = KangarooTwelve::new(b"");
hasher.update(input);
let mut xof = hasher.into_xof();
xof.squeeze(&mut output[..32]);
xof.squeeze(&mut output[32..]);
KangarooTwelveXof
can be created only by using KangarooTwelve::IntoXof
interface.
Trait Implementations§
Source§impl Clone for KangarooTwelveXof
impl Clone for KangarooTwelveXof
Source§fn clone(&self) -> KangarooTwelveXof
fn clone(&self) -> KangarooTwelveXof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for KangarooTwelveXof
impl RefUnwindSafe for KangarooTwelveXof
impl Send for KangarooTwelveXof
impl Sync for KangarooTwelveXof
impl Unpin for KangarooTwelveXof
impl UnwindSafe for KangarooTwelveXof
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
)