Struct blake2::VarBlake2b[][src]

pub struct VarBlake2b { /* fields omitted */ }

Blake2b instance with a variable output.

Methods

impl VarBlake2b
[src]

Creates a new hashing context with a key.

WARNING! If you plan to use it for variable output MAC, then make sure to compare codes in constant time! It can be done for example by using subtle crate.

Trait Implementations

impl Clone for VarBlake2b
[src]

Important traits for VarBlake2b

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for VarBlake2b
[src]

Returns the "default value" for a type. Read more

impl BlockInput for VarBlake2b
[src]

impl Input for VarBlake2b
[src]

Digest input data. Read more

Digest input data in a chained manner.

impl VariableOutput for VarBlake2b
[src]

Create new hasher instance with the given output size. Read more

Get output size of the hasher instance provided to the new method

Retrieve result via closure and consume hasher. Read more

Important traits for Vec<u8>

Retrieve result into vector and consume hasher.

impl Reset for VarBlake2b
[src]

Reset hasher instance to its initial state and return current state.

impl Debug for VarBlake2b

Formats the value using the given formatter. Read more

impl Write for VarBlake2b

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Important traits for &'a mut I

Creates a "by reference" adaptor for this instance of Write. Read more

Auto Trait Implementations

impl Send for VarBlake2b

impl Sync for VarBlake2b