Struct blake2::VarBlake2s[][src]

pub struct VarBlake2s { /* fields omitted */ }

Blake2s instance with a variable output.

Methods

impl VarBlake2s
[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 VarBlake2s
[src]

Important traits for VarBlake2s

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for VarBlake2s
[src]

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

impl BlockInput for VarBlake2s
[src]

impl Input for VarBlake2s
[src]

Digest input data. Read more

Digest input data in a chained manner.

impl VariableOutput for VarBlake2s
[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 VarBlake2s
[src]

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

impl Debug for VarBlake2s

Formats the value using the given formatter. Read more

impl Write for VarBlake2s

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 VarBlake2s

impl Sync for VarBlake2s