Skip to content

Commit 4cea671

Browse files
committed
psa: Expect output-buffer-sized RSA-decryption
When RSA decrypting, unlike with RSA encrypting, we sometimes expect the output length will be less than the key size. For instance, in the case where the plaintext is zero-length we expect the output length of the decryption to be zero-length as well, not key size in length. For must-fail tests, add an expected output length parameter because there is no supplied output buffer from which to get the expected length. Change the tests to expect that the actual output size is equal to the expected length of the output buffer instead of always being the key size.
1 parent 5333bd4 commit 4cea671

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

0 commit comments

Comments
 (0)