Struct blake2_rfc::blake2s::Blake2s
[−]
[src]
pub struct Blake2s { // some fields omitted }
State context.
Methods
impl Blake2s
fn new(nn: usize) -> Self
Creates a new hashing context without a key.
fn with_key(nn: usize, k: &[u8]) -> Self
Creates a new hashing context with a key.
fn update(&mut self, data: &[u8])
Updates the hashing context with more data.
fn finalize(self) -> Blake2sResult
Consumes the hashing context and returns the resulting hash.