Skip to content

Commit

Permalink
HMAC private
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Sep 13, 2024
1 parent 90ae605 commit 8aefad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(crate) fn hash<H: Digest>(data: &[u8]) -> digest::Output<H> {

/// Generic HMAC wrapper.
#[cfg(feature = "rfc-6979")]
pub(crate) fn hmac<H: Digest + digest::core_api::BlockSizeUser>(sk: &[u8], data: &[u8]) -> Vec<u8> {
fn hmac<H: Digest + digest::core_api::BlockSizeUser>(sk: &[u8], data: &[u8]) -> Vec<u8> {
use hmac::{Mac, SimpleHmac};
SimpleHmac::<H>::new_from_slice(sk)
.expect("HMAC can take key of any size")
Expand Down

0 comments on commit 8aefad6

Please sign in to comment.