Skip to content

Commit e59ddb9

Browse files
Rust blake2: remove unnecessary cfg guards
1 parent af0fd01 commit e59ddb9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wrapper/rust/wolfssl-wolfcrypt/src/blake2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ impl BLAKE2bHmac {
288288
///
289289
/// Returns either Ok(()) on success or Err(e) containing the wolfSSL
290290
/// library error code value.
291-
#[cfg(blake2b_hmac)]
292291
pub fn hmac(data: &[u8], key: &[u8], out: &mut [u8]) -> Result<(), i32> {
293292
let rc = unsafe {
294293
sys::wc_Blake2bHmac(data.as_ptr(), data.len(), key.as_ptr(),
@@ -562,7 +561,6 @@ impl BLAKE2sHmac {
562561
///
563562
/// Returns either Ok(()) on success or Err(e) containing the wolfSSL
564563
/// library error code value.
565-
#[cfg(blake2s_hmac)]
566564
pub fn hmac(data: &[u8], key: &[u8], out: &mut [u8]) -> Result<(), i32> {
567565
let rc = unsafe {
568566
sys::wc_Blake2sHmac(data.as_ptr(), data.len(), key.as_ptr(),

0 commit comments

Comments
 (0)