mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 01:15:36 +00:00
Move test of mbedtls_camellia_free() to separate test
The acceptance of NULL should be tested regardless of the setting of MBEDTLS_CHECK_PARAMS.
This commit is contained in:
parent
af4b83bb2a
commit
f1931760d8
|
@ -1,4 +1,7 @@
|
||||||
Camellia parameter validation
|
Camellia - Valid parameters
|
||||||
|
camellia_valid_param:
|
||||||
|
|
||||||
|
Camellia - Invalid parameters
|
||||||
camellia_invalid_param:
|
camellia_invalid_param:
|
||||||
|
|
||||||
Camellia-128-ECB Encrypt RFC3713 #1
|
Camellia-128-ECB Encrypt RFC3713 #1
|
||||||
|
|
|
@ -7,6 +7,13 @@
|
||||||
* END_DEPENDENCIES
|
* END_DEPENDENCIES
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* BEGIN_CASE */
|
||||||
|
void camellia_valid_param( )
|
||||||
|
{
|
||||||
|
TEST_VALID_PARAM( mbedtls_camellia_free( NULL ) );
|
||||||
|
}
|
||||||
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:MBEDTLS_CHECK_PARAMS:!MBEDTLS_PARAM_FAILED_ALT */
|
/* BEGIN_CASE depends_on:MBEDTLS_CHECK_PARAMS:!MBEDTLS_PARAM_FAILED_ALT */
|
||||||
void camellia_invalid_param( )
|
void camellia_invalid_param( )
|
||||||
{
|
{
|
||||||
|
@ -19,7 +26,6 @@ void camellia_invalid_param( )
|
||||||
((void) off);
|
((void) off);
|
||||||
|
|
||||||
TEST_INVALID_PARAM( mbedtls_camellia_init( NULL ) );
|
TEST_INVALID_PARAM( mbedtls_camellia_init( NULL ) );
|
||||||
TEST_VALID_PARAM( mbedtls_camellia_free( NULL ) );
|
|
||||||
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA,
|
||||||
mbedtls_camellia_setkey_enc( NULL,
|
mbedtls_camellia_setkey_enc( NULL,
|
||||||
|
|
Loading…
Reference in a new issue