Thomas Daubney | 62b0d1d | 2021-05-21 16:55:03 +0100 | [diff] [blame] | 1 | Remove the mode parameter from RSA functions |
| 2 | -------------------------------------------- |
| 3 | |
| 4 | This affects all users who use the RSA encryption, decryption, sign and |
| 5 | verify APIs. |
| 6 | |
Thomas Daubney | 2fbbe1d | 2021-05-24 10:53:57 +0100 | [diff] [blame] | 7 | You must delete the mode parameter from your RSA function calls. |
Thomas Daubney | 3ca92b1 | 2021-05-24 14:11:39 +0100 | [diff] [blame^] | 8 | Using the correct mode is now the default behaviour. Encryption |
| 9 | and verification functions are now equivalent to their 2.x |
| 10 | counterparts with mode=MBEDTLS_RSA_PUBLIC. Decryption and signing |
| 11 | functions are now equivalent to their 2.x counterparts with |
| 12 | mode=MBEDTLS_RSA_PRIVATE. Note that the constants |
| 13 | MBEDTLS_RSA_PUBLIC and MBEDTLS_RSA_PRIVATE have been removed in 3.0. |
Thomas Daubney | 62b0d1d | 2021-05-21 16:55:03 +0100 | [diff] [blame] | 14 | |
| 15 | Remove the RNG parameter from RSA functions |
| 16 | -------------------------------------------- |
| 17 | |
| 18 | This affects all users who use the RSA verify functions. |
| 19 | |
| 20 | If you were using the RNG parameters then you must remove |
Thomas Daubney | 2fbbe1d | 2021-05-24 10:53:57 +0100 | [diff] [blame] | 21 | them from your function calls. Since using the wrong mode |
Thomas Daubney | 62b0d1d | 2021-05-21 16:55:03 +0100 | [diff] [blame] | 22 | is no longer supported, the RNG parameters namely f_rng |
| 23 | and p_rng are no longer needed. |