blob: 75fadd878390a212d1ed39d1e680e50b16b1a1ea [file] [log] [blame] [view]
Manuel Pégourié-Gonnarde7885e52021-06-22 12:29:27 +02001RSA signature functions now require `hashlen` to match the expected value
2-------------------------------------------------------------------------
3
4This only affects users of the low-level RSA API; users of the high-level PK
5API or of the PSA Crypto API are not affected.
6
7All the functions in the RSA module that accept a `hashlen` parameter used to
8ignore it unless the `md_alg` parameter was `MBEDTLS_MD_NONE`, indicating raw
9data was signed. They now require this parameter's value to be equal to the
10output size of the hash algorithm used when signing a hash. (The requirements
11when signing raw data are unchanged.)
12
13The migration path is to pass the correct value to those functions.