mbedtls/docs/3.0-migration-guide.d/remove-rsa-mode-parameter.md
Thomas Daubney 3ca92b182c Re-wording of Migration guide entry
Commit re-words the migration guide
entry as requested in review.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
2021-05-24 14:11:39 +01:00

23 lines
963 B
Markdown

Remove the mode parameter from RSA functions
--------------------------------------------
This affects all users who use the RSA encryption, decryption, sign and
verify APIs.
You must delete the mode parameter from your RSA function calls.
Using the correct mode is now the default behaviour. Encryption
and verification functions are now equivalent to their 2.x
counterparts with mode=MBEDTLS_RSA_PUBLIC. Decryption and signing
functions are now equivalent to their 2.x counterparts with
mode=MBEDTLS_RSA_PRIVATE. Note that the constants
MBEDTLS_RSA_PUBLIC and MBEDTLS_RSA_PRIVATE have been removed in 3.0.
Remove the RNG parameter from RSA functions
--------------------------------------------
This affects all users who use the RSA verify functions.
If you were using the RNG parameters then you must remove
them from your function calls. Since using the wrong mode
is no longer supported, the RNG parameters namely f_rng
and p_rng are no longer needed.