aboutsummaryrefslogtreecommitdiff
path: root/reference_impl
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-01-15 10:41:06 -0500
committerJack O'Connor <[email protected]>2020-01-15 10:41:06 -0500
commite60934a129420ed283a587dce77f30519d750307 (patch)
tree4c72e43df02cd3c978e8488e9343f5e8b7b661e5 /reference_impl
parentc8c442a99b4c6e2d58106fb2c1327439b0747d4b (diff)
more consistent use of Self in the reference impl
Diffstat (limited to 'reference_impl')
-rw-r--r--reference_impl/reference_impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/reference_impl/reference_impl.rs b/reference_impl/reference_impl.rs
index 16584cd..2488343 100644
--- a/reference_impl/reference_impl.rs
+++ b/reference_impl/reference_impl.rs
@@ -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);