mirror of
https://github.com/espressif/mbedtls.git
synced 2025-06-13 06:55:18 +08:00
Fix documentation bug on necessity of RNG in RSA PKCS v1.5
This commit is contained in:
parent
2f660d047d
commit
974ca0d947
@ -588,12 +588,12 @@ int mbedtls_rsa_private( mbedtls_rsa_context *ctx,
|
|||||||
* return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED.
|
* return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED.
|
||||||
*
|
*
|
||||||
* \param ctx The initialized RSA context to use.
|
* \param ctx The initialized RSA context to use.
|
||||||
* \param f_rng The RNG to use. If PKCS#1 v2.1 padding encoding is
|
* \param f_rng The RNG to use. It is mandatory for PKCS#1 v2.1 padding
|
||||||
* used, this must be provided. Additionally, it is
|
* encoding, and for PKCS#1 v1.5 padding encoding when used
|
||||||
* used for blinding if \p mode is #MBEDTLS_RSA_PRIVATE
|
* with \p mode set to #MBEDTLS_RSA_PUBLIC. For PKCS#1 v1.5
|
||||||
* and should be provided in this case; see
|
* padding encoding and \p mode set to #MBEDTLS_RSA_PRIVATE,
|
||||||
* mbedtls_rsa_private() for more. It is ignored
|
* it is used for blinding and should be provided in this
|
||||||
* for PKCS#1 v1.5 padding with #MBEDTLS_RSA_PUBLIC.
|
* case; see mbedtls_rsa_private() for more.
|
||||||
* \param p_rng The RNG context to be passed to \p f_rng. May be
|
* \param p_rng The RNG context to be passed to \p f_rng. May be
|
||||||
* \c NULL if \p f_rng is \c NULL or if \p f_rng doesn't
|
* \c NULL if \p f_rng is \c NULL or if \p f_rng doesn't
|
||||||
* need a context argument.
|
* need a context argument.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user