mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 23:12:19 +01:00
1. Added some bounds checking on the ciphertext passed into the RSA decrypt function. NIST SP 800-56B specifies that the ciphertext shouldn't be a number larger than the modulus. 2. Added an API test to check that the direct RSA decrypt function returns an error with a "bad" message. 3. Added an ifndef guard to disable the bounds check. Default is to keep the bounds check. 4. RSA Decrypt bounds check only checked the first time into wc_RsaFunction().