This commit is contained in:
asonix 2023-11-25 19:47:04 -06:00
parent b89acf7918
commit 47d07e7f1f

View file

@ -40,7 +40,7 @@ impl DigestName for Sha3_512 {
const NAME: &'static str = "SHA3-512";
}
#[cfg(features = "client")]
#[cfg(feature = "client")]
mod client {
use super::*;
use crate::digest::DigestCreate;
@ -50,7 +50,7 @@ mod client {
digest: &mut D,
input: &[u8],
) -> String {
digest.update(input);
sha3::Digest::update(digest, input);
BASE64_STANDARD.encode(&digest.finalize_reset())
}