diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2024-09-09 23:26:56 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-06 08:01:25 +0000 |
commit | 9895fe25ac9579cfd85327c7b6d8ee271539c0e5 (patch) | |
tree | a95dfec7f0e74b423e488ab46a4846b59240d8ec | |
parent | a80136324956c012681c4fdfe9362f27697cb2e9 (diff) | |
download | edk2-9895fe25ac9579cfd85327c7b6d8ee271539c0e5.tar.gz |
CryptoPkg/BaseCryptLib: add next parameter to SHA3_squeeze
Needed for openssl 3.3.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h | 3 | ||||
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/Hash/CryptSha3.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h b/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h index 03a1a58cb8..c65bffa85d 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h +++ b/CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h @@ -66,7 +66,8 @@ SHA3_squeeze ( uint64_t A[5][5],
unsigned char *out,
size_t len,
- size_t r
+ size_t r,
+ int next
);
/**
diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSha3.c b/CryptoPkg/Library/BaseCryptLib/Hash/CryptSha3.c index 6abafc3c00..f996778706 100644 --- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSha3.c +++ b/CryptoPkg/Library/BaseCryptLib/Hash/CryptSha3.c @@ -160,7 +160,7 @@ Sha3Final ( (void)SHA3_absorb (Context->A, Context->buf, BlockSize, BlockSize);
- SHA3_squeeze (Context->A, MessageDigest, Context->md_size, BlockSize);
+ SHA3_squeeze (Context->A, MessageDigest, Context->md_size, BlockSize, 0);
return 1;
}
|