pub struct Blake2sVar { /* private fields */ }Expand description
BLAKE2s which allows to choose output size at runtime.
Trait Implementations§
Source§impl AlgorithmName for Blake2sVar
impl AlgorithmName for Blake2sVar
Source§impl BlockSizeUser for Blake2sVar
impl BlockSizeUser for Blake2sVar
Source§type BlockSize = <Blake2sVarCore as BlockSizeUser>::BlockSize
type BlockSize = <Blake2sVarCore as BlockSizeUser>::BlockSize
Size of the block in bytes.
Source§fn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
Source§impl Clone for Blake2sVar
impl Clone for Blake2sVar
Source§impl Debug for Blake2sVar
impl Debug for Blake2sVar
Source§impl Drop for Blake2sVar
impl Drop for Blake2sVar
Source§impl Update for Blake2sVar
impl Update for Blake2sVar
Source§impl VariableOutput for Blake2sVar
impl VariableOutput for Blake2sVar
Source§const MAX_OUTPUT_SIZE: usize = 32usize
const MAX_OUTPUT_SIZE: usize = 32usize
Maximum size of output hash in bytes.
Source§fn new(output_size: usize) -> Result<Self, InvalidOutputSize>
fn new(output_size: usize) -> Result<Self, InvalidOutputSize>
Create new hasher instance with the given output size in bytes. Read more
Source§fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size in bytes of the hasher instance provided to the
new methodSource§fn finalize_variable(self, out: &mut [u8]) -> Result<(), InvalidBufferSize>
fn finalize_variable(self, out: &mut [u8]) -> Result<(), InvalidBufferSize>
Write result into the output buffer. Read more
Source§fn digest_variable(
input: impl AsRef<[u8]>,
output: &mut [u8],
) -> Result<(), InvalidOutputSize>
fn digest_variable( input: impl AsRef<[u8]>, output: &mut [u8], ) -> Result<(), InvalidOutputSize>
Source§impl VariableOutputReset for Blake2sVar
impl VariableOutputReset for Blake2sVar
Source§fn finalize_variable_reset(
&mut self,
out: &mut [u8],
) -> Result<(), InvalidBufferSize>
fn finalize_variable_reset( &mut self, out: &mut [u8], ) -> Result<(), InvalidBufferSize>
Write result into the output buffer and reset the hasher state. Read more
impl HashMarker for Blake2sVar
impl ZeroizeOnDrop for Blake2sVar
Available on crate feature
zeroize only.Auto Trait Implementations§
impl Freeze for Blake2sVar
impl RefUnwindSafe for Blake2sVar
impl Send for Blake2sVar
impl Sync for Blake2sVar
impl Unpin for Blake2sVar
impl UnwindSafe for Blake2sVar
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