Struct Blake2b
pub struct Blake2b { /* private fields */ }Expand description
BLAKE2b hasher (RFC 7693). Default: 64-byte output, 128-byte blocks.
Implementations§
§impl Blake2b
impl Blake2b
pub fn with_output_len(out_len: usize) -> Blake2b
pub fn with_output_len(out_len: usize) -> Blake2b
Create a BLAKE2b hasher with a custom output length (1..=64 bytes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blake2b
impl RefUnwindSafe for Blake2b
impl Send for Blake2b
impl Sync for Blake2b
impl Unpin for Blake2b
impl UnsafeUnpin for Blake2b
impl UnwindSafe for Blake2b
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§impl<T> Hasher for Twhere
T: Digest,
impl<T> Hasher for Twhere
T: Digest,
Source§const OUTPUT_LEN: usize = const OUTPUT_LEN: usize = <T as tessera::Digest>::OUTPUT_LEN;
const OUTPUT_LEN: usize = const OUTPUT_LEN: usize = <T as tessera::Digest>::OUTPUT_LEN;
Output size in bytes.
Source§const BLOCK_LEN: usize = const BLOCK_LEN: usize = <T as tessera::Digest>::BLOCK_LEN;
const BLOCK_LEN: usize = const BLOCK_LEN: usize = <T as tessera::Digest>::BLOCK_LEN;
Block size in bytes (for HMAC computation).
Source§fn finalize_into(self, out: &mut [u8])
fn finalize_into(self, out: &mut [u8])
Finalize into a caller-provided buffer (no allocation).