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>
Wed, 8 Jun 2016 16:18:19 +0000 (18:18 +0200)
commit1f769e3e8442bae2f1f73c656920bb2df70153c0
tree78090723ae73f0e80dec6db7e6103c477b42621c
parent52cdfb1960808aaad48b5a501bbce0e3141c3961
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