Struct Blake2s
pub struct Blake2s { /* private fields */ }Expand description
BLAKE2s hasher (RFC 7693). Default: 32-byte output, 64-byte blocks.
32-bit oriented sibling of BLAKE2b; faster on Cortex-M and 32-bit RISC-V targets.
Implementations§
§impl Blake2s
impl Blake2s
pub fn with_output_len(out_len: usize) -> Blake2s
pub fn with_output_len(out_len: usize) -> Blake2s
Create a BLAKE2s hasher with a custom output length (1..=32 bytes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blake2s
impl RefUnwindSafe for Blake2s
impl Send for Blake2s
impl Sync for Blake2s
impl Unpin for Blake2s
impl UnsafeUnpin for Blake2s
impl UnwindSafe for Blake2s
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).