mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:05:47 +01:00
Test mbedtls_rsa_gen_key() with NULL ctx/RNG separately
This commit is contained in:
parent
71cd6c7ba9
commit
f04d923834
@ -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…
Reference in New Issue
Block a user