Skip to content
Snippets Groups Projects
Commit bfda54ee authored by Simo Sorce's avatar Simo Sorce Committed by Niels Möller
Browse files

Add rsa_sec_decrypt as side-channel silent variant


Use side-channel silent RSA root function as well as PKCS1 padding
functions.
This variant accepts only a fixed length message, and returns error
if the pkcs1 padding returns a different length message.
The buffer is always left unchanged on error so that a TLS
implementation can pre-initialize it with a random key to use on
decoding error.

Signed-off-by: default avatarSimo Sorce <simo@redhat.com>
parent 87b3c035
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment