diff options
author | Thomas Daubney <thomas.daubney@arm.com> | 2021-05-18 19:26:39 +0100 |
---|---|---|
committer | Thomas Daubney <thomas.daubney@arm.com> | 2021-05-18 20:07:13 +0100 |
commit | ac1331211e9f9c9d371a8e327c2fc8a95e90b239 (patch) | |
tree | e6ecb01a06dd591a168bf039491d5b412d37733d /programs/pkey | |
parent | 28b55850bdf836d83fe240a455c819a7f3bd7174 (diff) | |
download | mbedtls-ac1331211e9f9c9d371a8e327c2fc8a95e90b239.zip mbedtls-ac1331211e9f9c9d371a8e327c2fc8a95e90b239.tar.gz mbedtls-ac1331211e9f9c9d371a8e327c2fc8a95e90b239.tar.bz2 |
Removes f_rng parameter from mbedtls_rsa_pkcs1_verify
Commit removes f_rng parameter from
mbedtls_rsa_pkcs1_verify as a prerequisite
to removing the mode parameter. f_rng no
longer has relevance in this function if
mode is removed.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
Diffstat (limited to 'programs/pkey')
-rw-r--r-- | programs/pkey/dh_client.c | 2 | ||||
-rw-r--r-- | programs/pkey/rsa_verify.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/programs/pkey/dh_client.c b/programs/pkey/dh_client.c index d6e4990..eb21566 100644 --- a/programs/pkey/dh_client.c +++ b/programs/pkey/dh_client.c @@ -220,7 +220,7 @@ int main( void ) goto exit; } - if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, NULL, NULL, MBEDTLS_RSA_PUBLIC, + if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, NULL, MBEDTLS_RSA_PUBLIC, MBEDTLS_MD_SHA256, 0, hash, p ) ) != 0 ) { mbedtls_printf( " failed\n ! mbedtls_rsa_pkcs1_verify returned %d\n\n", ret ); diff --git a/programs/pkey/rsa_verify.c b/programs/pkey/rsa_verify.c index fbc0779..60e1377 100644 --- a/programs/pkey/rsa_verify.c +++ b/programs/pkey/rsa_verify.c @@ -140,7 +140,7 @@ int main( int argc, char *argv[] ) goto exit; } - if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, NULL, NULL, MBEDTLS_RSA_PUBLIC, + if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, NULL, MBEDTLS_RSA_PUBLIC, MBEDTLS_MD_SHA256, 20, hash, buf ) ) != 0 ) { mbedtls_printf( " failed\n ! mbedtls_rsa_pkcs1_verify returned -0x%0x\n\n", (unsigned int) -ret ); |