From 0fdd8d297a2d0374571fb0c8b026c83cfcfe2c81 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Mon, 17 May 2021 09:58:05 +0100 Subject: [PATCH] Adding correction to documentation As picked up in review, this commit modifies the documentation by removing some wording that is now superfluous given the removal of the mode parameter. Signed-off-by: Thomas Daubney --- include/mbedtls/rsa.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/include/mbedtls/rsa.h b/include/mbedtls/rsa.h index a4ef48860..a54ac4dd0 100644 --- a/include/mbedtls/rsa.h +++ b/include/mbedtls/rsa.h @@ -714,11 +714,6 @@ int mbedtls_rsa_rsaes_oaep_encrypt( mbedtls_rsa_context *ctx, * hold the decryption of the particular ciphertext provided, * the function returns \c MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE. * - * - * \note Alternative implementations of RSA need not support - * mode being set to #MBEDTLS_RSA_PUBLIC and might instead - * return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED. - * * \param ctx The initialized RSA context to use. * \param f_rng The RNG function. This is used for blinding and should * be provided; see mbedtls_rsa_private() for more. @@ -755,10 +750,6 @@ int mbedtls_rsa_pkcs1_decrypt( mbedtls_rsa_context *ctx, * hold the decryption of the particular ciphertext provided, * the function returns #MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE. * - * \note Alternative implementations of RSA need not support - * mode being set to #MBEDTLS_RSA_PUBLIC and might instead - * return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED. - * * \param ctx The initialized RSA context to use. * \param f_rng The RNG function. This is used for blinding and should * be provided; see mbedtls_rsa_private() for more. @@ -797,10 +788,6 @@ int mbedtls_rsa_rsaes_pkcs1_v15_decrypt( mbedtls_rsa_context *ctx, * ciphertext provided, the function returns * #MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE. * - * \note Alternative implementations of RSA need not support - * mode being set to #MBEDTLS_RSA_PUBLIC and might instead - * return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED. - * * \param ctx The initialized RSA context to use. * \param f_rng The RNG function. This is used for blinding and should * be provided; see mbedtls_rsa_private() for more.