Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit of Cisco's open source LMS #1430

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Fix XMSS crash
ashman-p committed Apr 20, 2023
commit b3eee7518a1571d086111d0984c096528787d652
4 changes: 3 additions & 1 deletion src/sig_stateful/xmss/sig_stfl_xmss_xmssmt_functions.c
Original file line number Diff line number Diff line change
@@ -13,9 +13,11 @@ OQS_API OQS_STATUS OQS_SIG_STFL_alg_xmss_sign(uint8_t *signature, size_t *signat
return OQS_ERROR;
}

if (xmss_sign(secret_key, signature, (unsigned long long *)signature_length, message, (unsigned long long)message_len) != 0) {
unsigned long long sig_len = 0;
if (xmss_sign(secret_key, signature, &sig_len, message, (unsigned long long)message_len) != 0) {
return OQS_ERROR;
}
*signature_length = (size_t)sig_len;
return OQS_SUCCESS;
}