pub struct Blake2b { /* fields omitted */ }
Create a new Blake2b context with a specific output size in bytes
the size need to be between 0 (non included) and 64 bytes (included)
Similar to new
but also takes a variable size key
to tweak the context initialization
Reset the context to the state after calling new
Reset the digest. This method must be called after result() and before supplying more data. Read more
Retrieve the digest result. This method may be called multiple times. Read more
Get the output size in bits.
Get the block size in bytes.
Get the output size in bytes.
Convenience function that feeds a string into a digest. Read more
Convenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
Process input data.
- data - The input data to process.
Reset the Mac state to begin processing another input stream.
Obtain the result of a Mac computation as a MacResult.
Obtain the result of a Mac computation as u8. This method should be used very carefully
since incorrect use of the Mac code could result in permitting a timing attack which defeats
the security provided by a Mac function.
Get the size of the Mac code, in bytes.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static