Skip to content

Commit b7325a4

Browse files
authored
Merge pull request #33 from RustCrypto/rename-result-to-finalize
Rename `*result*` to `finalize`
2 parents 12c7d13 + 4d690ff commit b7325a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hkdf/src/hkdf.rs

+2-2
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)