Skip to content

Commit 4d690ff

Browse files
committed
Rename *result* to finalize
Implements the API changes from: RustCrypto/traits#161 The `hmac` crate now uses `update` and `finalize` nomenclature ala the Initialize-Update-Finalize (IUF) interface naming scheme.
1 parent 12c7d13 commit 4d690ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hkdf/src/hkdf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ where
9393

9494
hmac.update(ikm);
9595

96-
let prk = hmac.result().into_bytes();
96+
let prk = hmac.finalize().into_bytes();
9797
let hkdf = Hkdf::from_prk(&prk).expect("PRK size is correct");
9898
(prk, hkdf)
9999
}
@@ -119,7 +119,7 @@ where
119119
hmac.update(info);
120120
hmac.update(&[blocknum as u8 + 1]);
121121

122-
let output = hmac.result_reset().into_bytes();
122+
let output = hmac.finalize_reset().into_bytes();
123123
okm_block.copy_from_slice(&output[..block_len]);
124124

125125
prev = Some(output);

0 commit comments

Comments
 (0)