diff options
author | Paul Bakker <p.j.bakker@polarssl.org> | 2013-08-30 10:30:02 +0200 |
---|---|---|
committer | Paul Bakker <p.j.bakker@polarssl.org> | 2013-08-30 10:30:02 +0200 |
commit | 548957dd493876ea0f4eed19c0f2e731d42ad7e7 (patch) | |
tree | 1f38da3efe3f2a4f0e75dec988ec67cdbabe90b4 /programs/pkey/rsa_verify_pss.c | |
parent | ca174fef80427e0a8d23daa1feedd9b5fa2d6a5c (diff) | |
download | mbedtls-548957dd493876ea0f4eed19c0f2e731d42ad7e7.zip mbedtls-548957dd493876ea0f4eed19c0f2e731d42ad7e7.tar.gz mbedtls-548957dd493876ea0f4eed19c0f2e731d42ad7e7.tar.bz2 |
Refactored RSA to have random generator in every RSA operation
Primarily so that rsa_private() receives an RNG for blinding purposes.
Diffstat (limited to 'programs/pkey/rsa_verify_pss.c')
-rw-r--r-- | programs/pkey/rsa_verify_pss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/pkey/rsa_verify_pss.c b/programs/pkey/rsa_verify_pss.c index 00d7378..b243772 100644 --- a/programs/pkey/rsa_verify_pss.c +++ b/programs/pkey/rsa_verify_pss.c @@ -124,8 +124,8 @@ int main( int argc, char *argv[] ) goto exit; } - if( ( ret = rsa_pkcs1_verify( &rsa, RSA_PUBLIC, POLARSSL_MD_SHA1, - 20, hash, buf ) ) != 0 ) + if( ( ret = rsa_pkcs1_verify( &rsa, NULL, NULL, RSA_PUBLIC, + POLARSSL_MD_SHA1, 20, hash, buf ) ) != 0 ) { printf( " failed\n ! rsa_pkcs1_verify returned %d\n\n", ret ); goto exit; |