Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 20, 2024
1 parent 2fdba91 commit e4662db
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/common/sha3/ossl_sha3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down

0 comments on commit e4662db

Please sign in to comment.