From 83548b5c102993d541979aaf5da59f4409b94c6c Mon Sep 17 00:00:00 2001 From: Yanray Wang Date: Wed, 15 Mar 2023 16:46:34 +0800 Subject: [PATCH] fix inappropriate description for function in RSA Signed-off-by: Yanray Wang --- include/mbedtls/rsa.h | 3 ++- library/rsa.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/rsa.h b/include/mbedtls/rsa.h index ba3a7605dd..7b7c3e864c 100644 --- a/include/mbedtls/rsa.h +++ b/include/mbedtls/rsa.h @@ -182,7 +182,8 @@ int mbedtls_rsa_set_padding(mbedtls_rsa_context *ctx, int padding, mbedtls_md_type_t hash_id); /** - * \brief This function retrieves padding mode of RSA modulus. + * \brief This function retrieves padding mode of initialized + * RSA context. * * \param ctx The initialized RSA context. * diff --git a/library/rsa.c b/library/rsa.c index fc7f3bc272..63102d7a0e 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -500,7 +500,7 @@ int mbedtls_rsa_set_padding(mbedtls_rsa_context *ctx, int padding, } /* - * Get padding mode of RSA modulus + * Get padding mode of initialized RSA context */ int mbedtls_rsa_get_padding_mode(const mbedtls_rsa_context *ctx) {