Add missing test for mbedtls_rsa_pkcs1_sign()

This commit is contained in:
Hanno Becker 2018-12-18 13:33:37 +00:00
parent f04d923834
commit 05cf6dabb8

View File

@ -275,6 +275,12 @@ void rsa_invalid_param( )
valid_mode, valid_mode,
0, sizeof( buf ), buf, 0, sizeof( buf ), buf,
NULL ) ); NULL ) );
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
valid_mode,
MBEDTLS_MD_SHA1,
0, NULL,
buf ) );
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA, TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
mbedtls_rsa_rsassa_pkcs1_v15_sign( NULL, NULL, NULL, mbedtls_rsa_rsassa_pkcs1_v15_sign( NULL, NULL, NULL,