Struct blake2::Blake2b [−][src]
pub struct Blake2b { /* fields omitted */ }Blake2b instance with a fixed output.
Trait Implementations
impl Clone for Blake2b[src]
impl Clone for Blake2bⓘImportant traits for Blake2bfn clone(&self) -> Blake2b[src]
fn clone(&self) -> Blake2bReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Default for Blake2b[src]
impl Default for Blake2bimpl BlockInput for Blake2b[src]
impl BlockInput for Blake2btype BlockSize = U64
impl Input for Blake2b[src]
impl Input for Blake2bfn input<B: AsRef<[u8]>>(&mut self, data: B)[src]
fn input<B: AsRef<[u8]>>(&mut self, data: B)Digest input data. Read more
fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>, [src]
fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>, Digest input data in a chained manner.
impl FixedOutput for Blake2b[src]
impl FixedOutput for Blake2btype OutputSize = U64
fn fixed_result(self) -> GenericArray<u8, U64>[src]
fn fixed_result(self) -> GenericArray<u8, U64>Retrieve result and consume hasher instance.
impl Reset for Blake2b[src]
impl Reset for Blake2bimpl Mac for Blake2b[src]
impl Mac for Blake2btype OutputSize = U64
type KeySize = U64
fn new(key: &GenericArray<u8, U64>) -> Self[src]
fn new(key: &GenericArray<u8, U64>) -> SelfCreate new MAC instance from key with fixed size.
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>[src]
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>Create new MAC instance from key with variable size. Read more
fn input(&mut self, data: &[u8])[src]
fn input(&mut self, data: &[u8])Process input data.
fn reset(&mut self)[src]
fn reset(&mut self)Reset Mac instance.
fn result(self) -> MacResult<Self::OutputSize>[src]
fn result(self) -> MacResult<Self::OutputSize>Obtain the result of a Mac computation as a MacResult and consume Mac instance. Read more
fn result_reset(&mut self) -> MacResult<Self::OutputSize>[src]
fn result_reset(&mut self) -> MacResult<Self::OutputSize>Obtain the result of a Mac computation as a MacResult and reset Mac instance. Read more
fn verify(self, code: &[u8]) -> Result<(), MacError>[src]
fn verify(self, code: &[u8]) -> Result<(), MacError>Check if code is correct for the processed input.
impl Debug for Blake2b
impl Debug for Blake2bfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Write for Blake2b
impl Write for Blake2bfn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Ifn by_ref(&mut self) -> &mut Self1.0.0[src]
fn by_ref(&mut self) -> &mut SelfCreates a "by reference" adaptor for this instance of Write. Read more