init
Construct a new Blake3 for the hash function, with an optional key
Function parameters
Parameters
An incremental hasher that can accept any number of writes.
Types
- Blake3
- An incremental hasher that can accept any number of writes.
Source
Implementation
pub fn init(options: Options) Blake3 {
if (options.key) |key| {
const key_words = wordsFromLittleEndianBytes(8, key);
return Blake3.init_internal(key_words, KEYED_HASH);
} else {
return Blake3.init_internal(IV, 0);
}
}