Skip to content

Commit

Permalink
sig_stfl build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 21, 2024
1 parent d544770 commit e177d16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/sig_stfl/lms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ set(SRCS


add_library(lms OBJECT ${SRCS})
target_include_directories(lms PRIVATE ${LIBOQS_ROOT_DIR}/include)
set(_LMS_OBJS ${_LMS_OBJS} $<TARGET_OBJECTS:lms>)
set(LMS_OBJS ${_LMS_OBJS} PARENT_SCOPE)

Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/lms/external/common_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <stdint.h>
#include <stdbool.h>

#include <oqs/oqs.h>
#define MAX_HASH 32 /* Length of the largest hash we support */

/* The I (Merkle tree identifier) value is 16 bytes long */
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/external/wots.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void wots_pk_from_sig(const xmss_params *params, unsigned char *pk,
const unsigned char *sig, const unsigned char *msg,
const unsigned char *pub_seed, uint32_t addr[8])
{
unsigned int *lengths = OQS_MEM_malloc(params->wots_len, sizeof(unsigned int ));
unsigned int *lengths = OQS_MEM_calloc(params->wots_len, sizeof(unsigned int ));
const size_t thash_buf_len = 2 * params->padding_len + 4 * params->n + 32;
unsigned char *thash_buf = OQS_MEM_malloc(thash_buf_len);
unsigned int i;
Expand Down

0 comments on commit e177d16

Please sign in to comment.