Add missing test for mbedtls_rsa_pkcs1_sign()
This commit is contained in:
parent
f04d923834
commit
05cf6dabb8
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue