diff --git a/http-signature-normalization-actix/src/digest/sha3.rs b/http-signature-normalization-actix/src/digest/sha3.rs index 3938f84..d27437d 100644 --- a/http-signature-normalization-actix/src/digest/sha3.rs +++ b/http-signature-normalization-actix/src/digest/sha3.rs @@ -6,12 +6,12 @@ use sha3::{ use super::{DigestCreate, DigestPart, DigestVerify}; -fn create(digest: &mut impl sha2::Digest, input: &[u8]) -> String { +fn create(digest: &mut impl sha3::Digest, input: &[u8]) -> String { digest.update(input); base64::encode(&digest.finalize_reset()) } -fn verify(digest: &mut impl sha2::Digest, name: &str, parts: &[DigestPart]) -> bool { +fn verify(digest: &mut impl sha3::Digest, name: &str, parts: &[DigestPart]) -> bool { if let Some(part) = parts .iter() .find(|p| p.algorithm.to_lowercase() == name.to_lowercase())