From 4944aa0d2a60f4225b7d3d2f1b92e4bf479c3f56 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Fri, 20 Sep 2024 08:35:08 +0000 Subject: [PATCH] Fix build errors Signed-off-by: Songling Han --- src/common/sha3/ossl_sha3x4.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/sha3/ossl_sha3x4.c b/src/common/sha3/ossl_sha3x4.c index 0ba4195ba..8c7aca6dc 100644 --- a/src/common/sha3/ossl_sha3x4.c +++ b/src/common/sha3/ossl_sha3x4.c @@ -233,6 +233,16 @@ static void SHA3_shake128_x4_inc_ctx_reset(OQS_SHA3_shake128_x4_inc_ctx *state) s->n_out = 0; } +/* SHAKE-256 */ + +static void SHA3_shake256_x4(uint8_t *output0, uint8_t *output1, uint8_t *output2, uint8_t *output3, size_t outlen, + const uint8_t *in0, const uint8_t *in1, const uint8_t *in2, const uint8_t *in3, size_t inplen) { + OQS_SHA3_shake256(output0, outlen, in0, inplen); + OQS_SHA3_shake256(output1, outlen, in1, inplen); + OQS_SHA3_shake256(output2, outlen, in2, inplen); + OQS_SHA3_shake256(output3, outlen, in3, inplen); +} + /* SHAKE256 incremental */ typedef struct {