mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-17 07:20:51 +00:00
- all positibe test cases were sampled from the CAVP test suite (SigGenPSS_186-2.txt, SigGenPSS_186-3.txt) Only kept one representative for each triple (modlen, sha, saltlen) - two extra test cases were added to cover the maximum salt length (slen=olen-slen-2 and slen=(olen-slen-2)-1) - in rsa.c, the salt intermediate buffer was too small to cover cases where slen > hlen. So reworked the code to generate the salt in the encoded message directly. This has the advantage to remove a memcpy and a memset. Signed-off-by: Cédric Meuter <cedric.meuter@gmail.com>