Skip to content

Commit b801396

Browse files
Rust wrapper: HMAC::get_hmac_size does not need mut ref
1 parent ce610db commit b801396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • wrapper/rust/wolfssl/src/wolfcrypt

wrapper/rust/wolfssl/src/wolfcrypt/hmac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl HMAC {
241241
/// let mut hash = vec![0u8; hash_size];
242242
/// hmac.finalize(&mut hash).expect("Error with finalize()");
243243
/// ```
244-
pub fn get_hmac_size(&mut self) -> Result<usize, i32> {
244+
pub fn get_hmac_size(&self) -> Result<usize, i32> {
245245
let typ = self.wc_hmac.macType as u32 as i32;
246246
let rc = unsafe { ws::wc_HmacSizeByType(typ) };
247247
if rc < 0 {

0 commit comments

Comments
 (0)