commit | 43f9799ce61c6392a014d0a2ea136b4b3a9ee194 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Mon Sep 23 11:23:31 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Mon Sep 23 11:23:31 2013 +0200 |
tree | df3b646b6c35db528d1902e4de451699ab6e6ef6 | |
parent | 88a2264def143fc9d5b8705bb6aec188ec61061f [diff] [blame] |
RSA blinding on CRT operations to counter timing attacks
diff --git a/programs/pkey/rsa_verify.c b/programs/pkey/rsa_verify.c index 2edd70a..db3a010 100644 --- a/programs/pkey/rsa_verify.c +++ b/programs/pkey/rsa_verify.c
@@ -131,7 +131,7 @@ goto exit; } - if( ( ret = rsa_pkcs1_verify( &rsa, RSA_PUBLIC, SIG_RSA_SHA1, + if( ( ret = rsa_pkcs1_verify( &rsa, NULL, NULL, RSA_PUBLIC, SIG_RSA_SHA1, 20, hash, buf ) ) != 0 ) { printf( " failed\n ! rsa_pkcs1_verify returned -0x%0x\n\n", -ret );