1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-03-28 18:39:56 +01:00

more consistent use of Self in the reference impl

This commit is contained in:
Jack O'Connor 2020-01-15 10:41:06 -05:00
parent c8c442a99b
commit e60934a129

View File

@ -307,7 +307,7 @@ impl Hasher {
/// Construct a new `Hasher` for the key derivation function. The context
/// string should be hardcoded, globally unique, and application-specific.
pub fn new_derive_key(context: &str) -> Self {
let mut context_hasher = Hasher::new_internal(IV, DERIVE_KEY_CONTEXT);
let mut context_hasher = Self::new_internal(IV, DERIVE_KEY_CONTEXT);
context_hasher.update(context.as_bytes());
let mut context_key = [0; KEY_LEN];
context_hasher.finalize(&mut context_key);