Skip to content

Commit

Permalink
Add ANSI-X9.63-KDF support: clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nemynm committed Oct 10, 2024
1 parent d9ee6e7 commit ab920bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansi-x963-kdf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
for chunk in key.chunks_mut(D::OutputSize::USIZE) {
// 4.1 Compute Ki = Hash(Z ‖ Counter ‖ [SharedInfo]) using the selected hash function
Digest::update(&mut digest, secret);
Digest::update(&mut digest, &counter.to_be_bytes());
Digest::update(&mut digest, counter.to_be_bytes());
Digest::update(&mut digest, shared_info);
chunk.copy_from_slice(&digest.finalize_reset()[..chunk.len()]);
// 4.2. Increment Counter
Expand Down

0 comments on commit ab920bf

Please sign in to comment.