Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ashman-p committed Nov 17, 2023
1 parent c233d22 commit b41b03b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/common/sha2/sha2_armv8.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void oqs_sha2_sha256_inc_finalize_armv8(uint8_t *out, sha256ctx *state, const ui
out[i] = state->ctx[i];
}
oqs_sha2_sha256_inc_ctx_release_c(state);
free(tmp_in);
free(tmp_in); // IGNORE free-check
}

void oqs_sha2_sha224_inc_finalize_armv8(uint8_t *out, sha224ctx *state, const uint8_t *in, size_t inlen) {
Expand Down Expand Up @@ -269,7 +269,7 @@ void oqs_sha2_sha256_inc_blocks_armv8(sha256ctx *state, const uint8_t *in, size_
bytes += 64 * inblocks;

store_bigendian_64(state->ctx + 32, bytes);
free(tmp_in);
free(tmp_in); // IGNORE free-check
}

void oqs_sha2_sha256_inc_armv8(sha256ctx *state, const uint8_t *in, size_t len) {
Expand Down
4 changes: 2 additions & 2 deletions src/common/sha2/sha2_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ void oqs_sha2_sha256_inc_blocks_c(sha256ctx *state, const uint8_t *in, size_t in
bytes += 64 * inblocks;

store_bigendian_64(state->ctx + 32, bytes);
free(tmp_in);
free(tmp_in); // IGNORE free-check
}

void oqs_sha2_sha256_inc_c(sha256ctx *state, const uint8_t *in, size_t len) {
Expand Down Expand Up @@ -770,7 +770,7 @@ void oqs_sha2_sha256_inc_finalize_c(uint8_t *out, sha256ctx *state, const uint8_
out[i] = state->ctx[i];
}
oqs_sha2_sha256_inc_ctx_release_c(state);
free(tmp_in);
free(tmp_in); // IGNORE free-check
}

void oqs_sha2_sha224_inc_finalize_c(uint8_t *out, sha224ctx *state, const uint8_t *in, size_t inlen) {
Expand Down

0 comments on commit b41b03b

Please sign in to comment.