Struct octavo_digest::blake2::Blake2b
[−]
[src]
pub struct Blake2b<Size: Unsigned + Clone> { // some fields omitted }
General BLAKE2b implementation
Methods
impl<Size> Blake2b<Size> where Size: Unsigned + Clone + ArrayLength<u8> + Mul<U8>, Size::Output: ArrayLength<u8>
[src]
fn default() -> Self
Default
fn with_key<K: AsRef<[u8]>>(key: K) -> Self
Initialize BLAKE2 hash function with custom key
Trait Implementations
impl<Size: Clone + Unsigned + Clone> Clone for Blake2b<Size>
[src]
fn clone(&self) -> Blake2b<Size>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Size> Digest for Blake2b<Size> where Size: ArrayLength<u8> + Mul<U8> + Clone, Size::Output: ArrayLength<u8>
[src]
type OutputBits = Self::OutputBytes::Output
Output size in bits
type OutputBytes = Size
Output size in bytes
type BlockSize = U128
Block size in bytes
fn update<T: AsRef<[u8]>>(&mut self, input: T)
Update digest with data.
fn result<T: AsMut<[u8]>>(self, out: T)
Write resulting hash into output
. Read more
fn output_bits() -> usize
Output size in bits
fn output_bytes() -> usize
Output size in bytes
fn block_size() -> usize
Block size in bytes