Skip to content

Commit

Permalink
Fixes [full tests]
Browse files Browse the repository at this point in the history
Signed-off-by: Basil Hess <[email protected]>
  • Loading branch information
bhess committed Nov 12, 2024
1 parent 5bb0bbf commit 1ddd802
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/sig_stfl/sig_stfl.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ OQS_API OQS_STATUS OQS_SIG_STFL_keypair(const OQS_SIG_STFL *sig, uint8_t *public
* @param[out] signature_len The length of the signature.
* @param[in] message The message to sign is represented as a byte string.
* @param[in] message_len The length of the message to sign.
* @param[in] ctx_str The context string for the signature. May be NULL in case of an empty context string.
* @param[in] ctx_str_len The length of the context string. May be 0 in case of an empty context string.
* @param[in] secret_key The secret key object pointer.
* @return OQS_SUCCESS or OQS_ERROR
*
Expand All @@ -471,6 +473,8 @@ OQS_API OQS_STATUS OQS_SIG_STFL_sign(const OQS_SIG_STFL *sig, uint8_t *signature
* @param[in] message_len The length of the message.
* @param[in] signature The signature on the message is represented as a byte string.
* @param[in] signature_len The length of the signature.
* @param[in] ctx_str The context string for the signature. May be NULL in case of an empty context string.
* @param[in] ctx_str_len The length of the context string. May be 0 in case of an empty context string.
* @param[in] public_key The public key is represented as a byte string.
* @return OQS_SUCCESS or OQS_ERROR
*/
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/* -------------- XMSS -------------- */
#ifndef OQS_ALLOW_XMSS_KEY_AND_SIG_GEN
OQS_API OQS_STATUS OQS_SIG_STFL_alg_xmss_sign(XMSS_UNUSED_ATT uint8_t *signature, XMSS_UNUSED_ATT size_t *signature_len, XMSS_UNUSED_ATT const uint8_t *message, XMSS_UNUSED_ATT size_t message_len,
XMSS_UNUSED_ATT OQS_SIG_STFL_SECRET_KEY *secret_key) {
XMSS_UNUSED_ATT const uint8_t *ctx_str, XMSS_UNUSED_ATT size_t ctx_str_len, XMSS_UNUSED_ATT OQS_SIG_STFL_SECRET_KEY *secret_key) {
return OQS_ERROR;
}
#else
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* -------------- XMSSMT -------------- */
#ifndef OQS_ALLOW_STFL_KEY_AND_SIG_GEN
OQS_API OQS_STATUS OQS_SIG_STFL_alg_xmssmt_sign(XMSS_UNUSED_ATT uint8_t *signature, XMSS_UNUSED_ATT size_t *signature_len, XMSS_UNUSED_ATT const uint8_t *message, XMSS_UNUSED_ATT size_t message_len,
XMSS_UNUSED_ATT OQS_SIG_STFL_SECRET_KEY *secret_key) {
XMSS_UNUSED_ATT const uint8_t *ctx_str, XMSS_UNUSED_ATT size_t ctx_str_len, XMSS_UNUSED_ATT OQS_SIG_STFL_SECRET_KEY *secret_key) {
return OQS_ERROR;
}
#else
Expand Down

0 comments on commit 1ddd802

Please sign in to comment.