pub struct Blake2bVar { /* private fields */ }Expand description
BLAKE2b which allows to choose output size at runtime.
Trait Implementations§
Source§impl AlgorithmName for Blake2bVar
impl AlgorithmName for Blake2bVar
Source§impl BlockSizeUser for Blake2bVar
impl BlockSizeUser for Blake2bVar
Source§type BlockSize = <Blake2bVarCore as BlockSizeUser>::BlockSize
type BlockSize = <Blake2bVarCore 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 Blake2bVar
impl Clone for Blake2bVar
Source§impl Debug for Blake2bVar
impl Debug for Blake2bVar
Source§impl Drop for Blake2bVar
impl Drop for Blake2bVar
Source§impl Update for Blake2bVar
impl Update for Blake2bVar
Source§impl VariableOutput for Blake2bVar
impl VariableOutput for Blake2bVar
Source§const MAX_OUTPUT_SIZE: usize = 64usize
const MAX_OUTPUT_SIZE: usize = 64usize
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 Blake2bVar
impl VariableOutputReset for Blake2bVar
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 Blake2bVar
impl ZeroizeOnDrop for Blake2bVar
Available on crate feature
zeroize only.Auto Trait Implementations§
impl Freeze for Blake2bVar
impl RefUnwindSafe for Blake2bVar
impl Send for Blake2bVar
impl Sync for Blake2bVar
impl Unpin for Blake2bVar
impl UnwindSafe for Blake2bVar
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