Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Oct 11, 2024
1 parent d329ce5 commit d9e0c96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/sha2/sha2_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static const uint8_t iv_512[64] = {

void oqs_sha2_sha224_inc_init_c(sha224ctx *state) {
state->ctx = OQS_MEM_malloc(PQC_SHA256CTX_BYTES);
if (!stateout->ctx) {
if (!state->ctx) {
return;
}
for (size_t i = 0; i < 32; ++i) {
Expand All @@ -519,7 +519,7 @@ void oqs_sha2_sha224_inc_init_c(sha224ctx *state) {
void oqs_sha2_sha256_inc_init_c(sha256ctx *state) {
state->data_len = 0;
state->ctx = OQS_MEM_malloc(PQC_SHA256CTX_BYTES);
if (!stateout->ctx) {
if (!stat->ctx) {
return;
}
for (size_t i = 0; i < 32; ++i) {
Expand Down Expand Up @@ -549,7 +549,7 @@ void oqs_sha2_sha384_inc_init_c(sha384ctx *state) {

void oqs_sha2_sha512_inc_init_c(sha512ctx *state) {
state->ctx = OQS_MEM_malloc(PQC_SHA512CTX_BYTES);
if (!stateout->ctx) {
if (!state->ctx) {
return;
}
for (size_t i = 0; i < 64; ++i) {
Expand Down

0 comments on commit d9e0c96

Please sign in to comment.