Skip to content

Commit

Permalink
LMS: comments, SMALL_STACK, cleanup, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Jul 14, 2023
1 parent 4c125ec commit a747e77
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 136 deletions.
8 changes: 7 additions & 1 deletion wolfcrypt/benchmark/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -7851,12 +7851,18 @@ static void bench_lms_sign_verify(enum wc_LmsParm parm)
byte priv[HSS_MAX_PRIVATE_KEY_LEN];
const char * str = wc_LmsKey_ParmToStr(parm);

ret = wc_LmsKey_Init(&key, parm);
ret = wc_LmsKey_Init(&key, NULL, INVALID_DEVID);
if (ret) {
printf("wc_LmsKey_Init failed: %d\n", ret);
goto exit_lms_sign_verify;
}

ret = wc_LmsKey_SetLmsParm(&key, parm);
if (ret) {
printf("wc_LmsKey_SetLmsParm failed: %d\n", ret);
goto exit_lms_sign_verify;
}

switch (parm) {
case WC_LMS_PARM_L2_H10_W2:
XMEMCPY(priv, lms_priv_L2_H10_W2, sizeof(lms_priv_L2_H10_W2));
Expand Down
Loading

0 comments on commit a747e77

Please sign in to comment.