]> git.ipfire.org Git - thirdparty/nettle.git/commit
Add rsa_sec_decrypt as side-channel silent variant
authorSimo Sorce <simo@redhat.com>
Wed, 10 Oct 2018 20:15:49 +0000 (16:15 -0400)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 25 Nov 2018 09:42:20 +0000 (10:42 +0100)
commitbfda54eeb2e5aa0916dc87d38a5d66c6dfb0359d
tree2d1c8c547a6d5713c79accf581a7f9edf48c42ee
parent87b3c035102ba48b4ebf6665a8e2b4563fe9427f
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: Simo Sorce <simo@redhat.com>
Makefile.in
rsa-sec-decrypt.c [new file with mode: 0644]
rsa.h
testsuite/rsa-encrypt-test.c