mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 08:16:33 +01:00
Test mbedtls_rsa_gen_key() with NULL ctx/RNG separately
This commit is contained in:
parent
71cd6c7ba9
commit
f04d923834
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ void rsa_invalid_param( )
|
|||
invalid_padding, 0 ) );
|
||||
|
||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||
mbedtls_rsa_gen_key( NULL, NULL, NULL, 0, 0 ) );
|
||||
mbedtls_rsa_gen_key( NULL, rnd_std_rand,
|
||||
NULL, 0, 0 ) );
|
||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||
mbedtls_rsa_gen_key( &ctx, NULL,
|
||||
NULL, 0, 0 ) );
|
||||
|
||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||
mbedtls_rsa_check_pubkey( NULL ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue