Skip to content

Commit

Permalink
Fix CI build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Oct 24, 2023
1 parent 74a2051 commit 3cf84cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/rand/rand_hqc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "oqs/oqs.h"
#include "oqs/sha3.h"

#define PRNG_DOMAIN 1
Expand All @@ -10,7 +11,7 @@ OQS_SHA3_shake256_inc_ctx shake_prng_state = { NULL };

void OQS_randombytes_hqc_kat(uint8_t *buf, size_t n);

void OQS_randombytes_hqc_kat_init(const uint8_t *entropy_input, const uint8_t *personalization_string) {
OQS_API void OQS_randombytes_hqc_kat_init(const uint8_t *entropy_input, const uint8_t *personalization_string) {
uint8_t domain = PRNG_DOMAIN;
if (shake_prng_state.ctx != NULL) {
OQS_SHA3_shake256_inc_ctx_reset(&shake_prng_state);
Expand All @@ -29,7 +30,7 @@ void OQS_randombytes_hqc_kat(uint8_t *buf, size_t n) {
OQS_SHA3_shake256_inc_squeeze(buf, n, &shake_prng_state);
}

void OQS_randombytes_hqc_kat_free() {
OQS_API void OQS_randombytes_hqc_kat_free(void) {
if (shake_prng_state.ctx != NULL) {
OQS_SHA3_shake256_inc_ctx_release(&shake_prng_state);
shake_prng_state.ctx = NULL;
Expand Down

0 comments on commit 3cf84cf

Please sign in to comment.