Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose EVP_DigestSqueeze from Hasher #2275

Merged
merged 11 commits into from
Jan 23, 2025
Prev Previous commit
oops forgot compiler directive
initsecret committed Dec 21, 2024
commit 95159d0d7ccb47eb38cf12554f938d29beab25ce
1 change: 1 addition & 0 deletions openssl/src/hash.rs
Original file line number Diff line number Diff line change
@@ -278,6 +278,7 @@ impl Hasher {
if self.state == Finalized {
self.init()?;
}
#[cfg(ossl330)]
if self.state == Squeeze {
// [`EVP_DigestUpdate`], depending on the implementation, may allow Updates after Squeezes.
// But, [FIPS 202], as shown in Figure 7, has a distinguished absorbing phase followed by a squeezing phase.