From df2f0aae813c037bd9d5c3468a96ff928461cce5 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Fri, 6 Jun 2025 14:34:54 +0100 Subject: [PATCH] lms.c: Updated documentation Signed-off-by: Minos Galanakis --- library/lms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/lms.c b/library/lms.c index 11e2508954..41d34bfe16 100644 --- a/library/lms.c +++ b/library/lms.c @@ -101,7 +101,7 @@ static int create_merkle_leaf_value(const mbedtls_lms_parameters_t *params, size_t output_hash_len; unsigned char r_node_idx_bytes[4]; - /* Always zeroize the output buffer to avoid undefined behavior at an early exit */ + /* Always zeroize the output buffer because it may contain data from the previous invocation */ memset(out, 0, MBEDTLS_LMS_M_NODE_BYTES(params->type)); op = psa_hash_operation_init();