pub struct TupleHash256 { /* private fields */ }Expand description
SP 800-185 TupleHash256, at the 256-bit security level.
Implementations§
Source§impl TupleHash256
impl TupleHash256
Sourcepub fn update(&mut self, element: &[u8])
pub fn update(&mut self, element: &[u8])
Add one element of the tuple.
Each element is length-prefixed, which is the entire point: see the type documentation.
Sourcepub fn finalize(self, out: &mut [u8])
pub fn finalize(self, out: &mut [u8])
Finish with a fixed-length output, binding the length in.
Sourcepub fn finalize_xof(self, out: &mut [u8])
pub fn finalize_xof(self, out: &mut [u8])
Finish in XOF mode, where the output is a stream.
Trait Implementations§
Source§impl Algorithm for TupleHash256
impl Algorithm for TupleHash256
Source§impl Clone for TupleHash256
impl Clone for TupleHash256
Auto Trait Implementations§
impl Freeze for TupleHash256
impl RefUnwindSafe for TupleHash256
impl Send for TupleHash256
impl Sync for TupleHash256
impl Unpin for TupleHash256
impl UnsafeUnpin for TupleHash256
impl UnwindSafe for TupleHash256
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