Struct blake2_rfc::blake2s::Blake2s [−][src]
pub struct Blake2s { /* fields omitted */ }State context.
Implementations
impl Blake2s[src]
impl Blake2s[src]pub fn new(nn: usize) -> Self[src]
Creates a new hashing context without a key.
pub fn with_key(nn: usize, k: &[u8]) -> Self[src]
Creates a new hashing context with a key.
pub fn update(&mut self, data: &[u8])[src]
Updates the hashing context with more data.
pub fn finalize(self) -> Blake2sResult[src]
Consumes the hashing context and returns the resulting hash.
Trait Implementations
impl Write for Blake2s[src]
impl Write for Blake2s[src]fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn flush(&mut self) -> Result<()>[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>1.36.0[src]
pub fn is_write_vectored(&self) -> bool[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>