opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[crypto] Fix a broken trap condition in RSA

Open RyanTorok opened this issue 1 year ago • 1 comments

Previously, the RSA OAEP decryption logic incorrectly performed a hardware trap after completing the decryption if the passed buffer for the plaintext is exactly the correct size. This PR fixes this bug. The correctness of this fix has been verified using the wycheproof test vectors.

RyanTorok avatar Feb 20 '24 13:02 RyanTorok

Thanks for the clarification, Jade!

RyanTorok avatar Feb 20 '24 14:02 RyanTorok

Successfully created backport PR for earlgrey_es_sival:

  • #21687

github-actions[bot] avatar Feb 26 '24 16:02 github-actions[bot]