From 591f98e0396cf1ecebe28685bf3dc13b46571620 Mon Sep 17 00:00:00 2001 From: Chien Wong Date: Tue, 26 Sep 2023 22:33:05 +0800 Subject: [PATCH] Clarify output_length in mbedtls_gcm_update() Signed-off-by: Chien Wong --- tf-psa-crypto/drivers/builtin/include/mbedtls/gcm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tf-psa-crypto/drivers/builtin/include/mbedtls/gcm.h b/tf-psa-crypto/drivers/builtin/include/mbedtls/gcm.h index c27f2dc74..764b7c9cb 100644 --- a/tf-psa-crypto/drivers/builtin/include/mbedtls/gcm.h +++ b/tf-psa-crypto/drivers/builtin/include/mbedtls/gcm.h @@ -278,7 +278,8 @@ int mbedtls_gcm_update_ad(mbedtls_gcm_context *ctx, * of at least \p output_size bytes. * \param output_size The size of the output buffer in bytes. * \param output_length On success, \p *output_length contains the actual - * length of the output written in \p output. + * length of the output written in \p output, which equals + * to \p input_length. * On failure, the content of \p *output_length is * unspecified. *