Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Saxena <[email protected]>
  • Loading branch information
abhinav-thales committed Jan 24, 2025
1 parent 38f9b37 commit d0dc2cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/vectors_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ static int sig_gen_vector_ext(const char *method_name,
int rc = -1, ret = -1;
size_t sigLen;

void (*randombytes_init)(const uint8_t *, const uint8_t *) = NULL;
void (*randombytes_free)(void) = NULL;

sig = OQS_SIG_new(method_name);
if (sig == NULL) {
printf("[vectors_sig] %s was not enabled at compile-time.\n", method_name);
Expand All @@ -445,9 +448,6 @@ static int sig_gen_vector_ext(const char *method_name,
goto err;
}

void (*randombytes_init)(const uint8_t *, const uint8_t *) = NULL;
void (*randombytes_free)(void) = NULL;

if (is_ml_dsa(method_name)) {
OQS_randombytes_custom_algorithm(&MLDSA_randombytes);
randombytes_init = &MLDSA_randombytes_init;
Expand Down

0 comments on commit d0dc2cf

Please sign in to comment.