From 0118d4190aa71b8e1f5848d4f5c3a6c34abab2a4 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 17 Dec 2018 10:06:21 +0000 Subject: [PATCH] Document that RSA public exponent must be odd --- include/mbedtls/rsa.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mbedtls/rsa.h b/include/mbedtls/rsa.h index 276293c51..0041dc5a6 100644 --- a/include/mbedtls/rsa.h +++ b/include/mbedtls/rsa.h @@ -433,6 +433,7 @@ size_t mbedtls_rsa_get_len( const mbedtls_rsa_context *ctx ); * This may be \c NULL if \p f_rng doesn't need a context. * \param nbits The size of the public key in bits. * \param exponent The public exponent to use. For example, \c 65537. + * This must be odd. * * \return \c 0 on success. * \return An \c MBEDTLS_ERR_RSA_XXX error code on failure.