Struct blake2_rfc::blake2b::Blake2b [−][src]
pub struct Blake2b { /* fields omitted */ }State context.
Implementations
impl Blake2b[src]
impl Blake2b[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) -> Blake2bResult[src]
Consumes the hashing context and returns the resulting hash.
Trait Implementations
impl Write for Blake2b[src]
impl Write for Blake2b[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>