From e4662dbbc0287205915c3f909df07ff4db6c11e0 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Fri, 20 Sep 2024 08:21:11 +0000 Subject: [PATCH] Fix build errors Signed-off-by: Songling Han --- src/common/sha3/ossl_sha3.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/common/sha3/ossl_sha3.c b/src/common/sha3/ossl_sha3.c index a07fb897c..38acfff6c 100644 --- a/src/common/sha3/ossl_sha3.c +++ b/src/common/sha3/ossl_sha3.c @@ -229,23 +229,6 @@ typedef struct { size_t n_out; } intrn_shake128_inc_ctx; -static void SHA3_shake128_inc_init(OQS_SHA3_shake128_inc_ctx *state) { - state->ctx = OQS_MEM_malloc(sizeof(intrn_shake128_inc_ctx)); - if (state->ctx == NULL) { - return; - } - - intrn_shake128_inc_ctx *s = (intrn_shake128_inc_ctx *)state->ctx; - s->mdctx = OSSL_FUNC(EVP_MD_CTX_new)(); - if (s->mdctx == NULL) { - OQS_MEM_free(state->ctx); - state->ctx = NULL; - return; - } - s->n_out = 0; - OSSL_FUNC(EVP_DigestInit_ex)(s->mdctx, oqs_shake128(), NULL); -} - static void SHA3_shake128_inc_init(OQS_SHA3_shake128_inc_ctx *state) { state->ctx = OQS_MEM_malloc(sizeof(intrn_shake128_inc_ctx)); if (state->ctx == NULL) { @@ -267,11 +250,6 @@ static void SHA3_shake128_inc_init(OQS_SHA3_shake128_inc_ctx *state) { } } -static void SHA3_shake128_inc_absorb(OQS_SHA3_shake128_inc_ctx *state, const uint8_t *input, size_t inplen) { - intrn_shake128_inc_ctx *s = (intrn_shake128_inc_ctx *)state->ctx; - OSSL_FUNC(EVP_DigestUpdate)(s->mdctx, input, inplen); -} - static void SHA3_shake128_inc_finalize(OQS_SHA3_shake128_inc_ctx *state) { (void)state; }