blob: a04d9ee2ae367ca074c8f0598c1bd7434da00004 [file] [log] [blame] [view]
Ronald Cron6fe1bc32021-06-07 09:35:02 +02001Remove the padding parameters from mbedtls_rsa_init()
2-----------------------------------------------------
3
4This affects all users who use the RSA encryption, decryption, sign and
5verify APIs.
6
7The function mbedtls_rsa_init() no longer supports selecting the PKCS#1 v2.1
8encoding and its hash. It just selects the PKCS#1 v1.5 encoding by default. If
9you were using the PKCS#1 v2.1 encoding you now need, subsequently to the call
10to mbedtls_rsa_init(), to call mbedtls_rsa_set_padding() to set it.
11
12Code migration examples:
13```C
14 mbedtls_rsa_init(ctx, padding, hash_id);
15```
16to
17```C
18 mbedtls_rsa_init(ctx);
19 mbedtls_rsa_set_padding(ctx, padding, hash_id);
20```
21or
22```C
23 mbedtls_rsa_init(ctx, MBEDTLS_RSA_PKCS_V15, <ignored>);
24```
25to
26```C
27 mbedtls_rsa_init(ctx);
28```
29