Test mbedtls_rsa_init() with invalid padding
This commit is contained in:
parent
f66f294e2e
commit
a7ee00225b
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ void rsa_invalid_param( )
|
|||
unsigned char buf[42] = { 0 };
|
||||
size_t olen;
|
||||
|
||||
TEST_INVALID_PARAM( mbedtls_rsa_init( NULL, 0, 0 ) );
|
||||
TEST_INVALID_PARAM( mbedtls_rsa_init( NULL, valid_padding, 0 ) );
|
||||
TEST_INVALID_PARAM( mbedtls_rsa_init( &ctx, invalid_padding, 0 ) );
|
||||
TEST_VALID_PARAM( mbedtls_rsa_free( NULL ) );
|
||||
|
||||
/* No more variants because only the first argument must be non-NULL. */
|
||||
|
|
Loading…
Reference in a new issue