rsa: Implement blinding also for signing.
authorWerner Koch <wk@gnupg.org>
Fri, 3 Jun 2016 13:42:53 +0000 (15:42 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 3 Jun 2016 13:42:53 +0000 (15:42 +0200)
commitef6e4d004b10f5740bcd2125fb70e199dd21e3e8
tree4f9b9093a73a2be6b80369ad5f9940f42194abc5
parent82df6c63a72fdd969c3923523f10d0cef5713ac7
rsa: Implement blinding also for signing.

* cipher/rsa.c (rsa_decrypt): Factor blinding code out to ...
(secret_blinded): new.
(rsa_sign): Use blinding by default.
--

Although blinding of the RSA sign operation has a noticable speed
loss, we better be on the safe site by using it by default.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/rsa.c