pub struct Blake2b { /* private fields */ }
Implementations§
Source§impl Blake2b
impl Blake2b
Sourcepub fn with_output_size(out_len: usize) -> Self
pub fn with_output_size(out_len: usize) -> Self
Generic constructor (non‑keyed) with configurable output length.
Sourcepub fn with_parameter_block(param: [u8; 64], out_len: usize) -> Self
pub fn with_parameter_block(param: [u8; 64], out_len: usize) -> Self
Generic constructor with a fully specified parameter block.
The parameter block is a 64-byte array that controls the Blake2b configuration. This is primarily used for specialized hash constructions.
§Arguments
param
- The 64-byte parameter blockout_len
- The desired output length in bytes
Trait Implementations§
Source§impl HashFunction for Blake2b
impl HashFunction for Blake2b
Source§type Algorithm = Blake2bAlgorithm
type Algorithm = Blake2bAlgorithm
The algorithm type that defines constants and properties
Source§fn update(&mut self, input: &[u8]) -> Result<&mut Self>
fn update(&mut self, input: &[u8]) -> Result<&mut Self>
Updates the hash state with
data
, returning self for chaining.Source§fn output_size() -> usize
fn output_size() -> usize
The output size in bytes.
Source§fn block_size() -> usize
fn block_size() -> usize
The internal block size in bytes.
Source§fn finalize_reset(&mut self) -> Result<Self::Output>
fn finalize_reset(&mut self) -> Result<Self::Output>
Finalizes, returns the digest, and resets state.
Source§impl SecureZeroingType for Blake2b
impl SecureZeroingType for Blake2b
Auto Trait Implementations§
impl Freeze for Blake2b
impl RefUnwindSafe for Blake2b
impl Send for Blake2b
impl Sync for Blake2b
impl Unpin 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