From 1ddd8022c6bf6d387ee075abd5c3bfd05a62eabe Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Wed, 13 Nov 2024 00:41:01 +0100 Subject: [PATCH] Fixes [full tests] Signed-off-by: Basil Hess --- src/sig_stfl/sig_stfl.h | 4 ++++ src/sig_stfl/xmss/sig_stfl_xmss_functions.c | 2 +- src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sig_stfl/sig_stfl.h b/src/sig_stfl/sig_stfl.h index 28f98734e..bea0cef9d 100644 --- a/src/sig_stfl/sig_stfl.h +++ b/src/sig_stfl/sig_stfl.h @@ -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 * @@ -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 */ diff --git a/src/sig_stfl/xmss/sig_stfl_xmss_functions.c b/src/sig_stfl/xmss/sig_stfl_xmss_functions.c index 8e3120c5e..820be42da 100644 --- a/src/sig_stfl/xmss/sig_stfl_xmss_functions.c +++ b/src/sig_stfl/xmss/sig_stfl_xmss_functions.c @@ -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 diff --git a/src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c b/src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c index a931cf154..9edeefc78 100644 --- a/src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c +++ b/src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c @@ -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