diff options
author | Thomas Daubney <thomas.daubney@arm.com> | 2021-05-18 19:34:03 +0100 |
---|---|---|
committer | Thomas Daubney <thomas.daubney@arm.com> | 2021-05-18 20:07:13 +0100 |
commit | 613d1a4fb7ce0a4c172b5f30e0b1220594ca0a9b (patch) | |
tree | a78843473d77ec9eae3f6d7851e764ca17258a01 /programs/pkey | |
parent | ac1331211e9f9c9d371a8e327c2fc8a95e90b239 (diff) | |
download | mbedtls-613d1a4fb7ce0a4c172b5f30e0b1220594ca0a9b.zip mbedtls-613d1a4fb7ce0a4c172b5f30e0b1220594ca0a9b.tar.gz mbedtls-613d1a4fb7ce0a4c172b5f30e0b1220594ca0a9b.tar.bz2 |
Removes p_rng param from mbedtls_rsa_pkcs1_verify
Commit removes p_rng from mbedtls_rsa_pkcs1_verify
since p_rng has no relevance following the removal
of f_rng from this function.
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 eb21566..bdbabb6 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, MBEDTLS_RSA_PUBLIC, + if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, 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 60e1377..8f207c7 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, MBEDTLS_RSA_PUBLIC, + if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, 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 ); |