Skip to content

Commit 1252dd6

Browse files
committed
Add missing wc_LmsKey_Init call.
1 parent 64aedb4 commit 1252dd6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pq/stateful_hash_sig/lms_example.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ do_lms_example(int levels,
252252
goto exit_lms_example;
253253
}
254254

255+
ret = wc_LmsKey_Init(&verifyKey, NULL, 0);
256+
if (ret) {
257+
fprintf(stderr, "error: wc_LmsKey_Init returned %d\n", ret);
258+
goto exit_lms_example;
259+
}
260+
255261
ret = wc_LmsKey_SetParameters(&signingKey, levels, height, winternitz);
256262
if (ret) {
257263
fprintf(stderr, "error: wc_LmsKey_SetParameters(%d, %d, %d) returned %d\n",

0 commit comments

Comments
 (0)