We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce610db commit b801396Copy full SHA for b801396
1 file changed
wrapper/rust/wolfssl/src/wolfcrypt/hmac.rs
@@ -241,7 +241,7 @@ impl HMAC {
241
/// let mut hash = vec![0u8; hash_size];
242
/// hmac.finalize(&mut hash).expect("Error with finalize()");
243
/// ```
244
- pub fn get_hmac_size(&mut self) -> Result<usize, i32> {
+ pub fn get_hmac_size(&self) -> Result<usize, i32> {
245
let typ = self.wc_hmac.macType as u32 as i32;
246
let rc = unsafe { ws::wc_HmacSizeByType(typ) };
247
if rc < 0 {
0 commit comments