Struct sha3::Sha3
[−]
[src]
pub struct Sha3<N: ArrayLength<u8>, K: ArrayLength<u8>, M: ArrayLength<u8>> { /* fields omitted */ }
Generic SHA-3 hasher. Type arguments meaning: N -- digest len, K -- rate and block size, M -- padding property
Methods
impl<N, K, M> Sha3<N, K, M> where N: ArrayLength<u8>,
K: ArrayLength<u8>,
M: ArrayLength<u8>
[src]
K: ArrayLength<u8>,
M: ArrayLength<u8>
Trait Implementations
impl<N: Copy + ArrayLength<u8>, K: Copy + ArrayLength<u8>, M: Copy + ArrayLength<u8>> Copy for Sha3<N, K, M>
[src]
impl<N: Clone + ArrayLength<u8>, K: Clone + ArrayLength<u8>, M: Clone + ArrayLength<u8>> Clone for Sha3<N, K, M>
[src]
fn clone(&self) -> Sha3<N, K, M>
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<L, K, M> Default for Sha3<L, K, M> where L: ArrayLength<u8>,
K: ArrayLength<u8>,
M: ArrayLength<u8>
[src]
K: ArrayLength<u8>,
M: ArrayLength<u8>
impl<L, K, M> Digest for Sha3<L, K, M> where L: ArrayLength<u8>,
K: ArrayLength<u8>,
M: ArrayLength<u8>
[src]
K: ArrayLength<u8>,
M: ArrayLength<u8>
type OutputSize = L
type BlockSize = K
fn input(&mut self, data: &[u8])
Digest input data. This method can be called repeatedly for use with streaming messages. Read more
fn result(self) -> GenericArray<u8, Self::OutputSize>
Retrieve the digest result. This method consumes digest instance.
fn block_bytes(&self) -> usize
Get the block size in bytes.
fn block_bits(&self) -> usize
Get the block size in bits.
fn output_bytes(&self) -> usize
Get the output size in bytes.
fn output_bits(&self) -> usize
Get the output size in bits.