Fix a typo in test_suite_cipher

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2022-10-20 05:19:47 -04:00
parent 0e7e47147c
commit 8f26c8a0cf

View File

@ -116,7 +116,7 @@ static int cipher_reset_key( mbedtls_cipher_context_t *ctx, int cipher_id,
mbedtls_cipher_free( ctx ); mbedtls_cipher_free( ctx );
mbedtls_cipher_init( ctx ); mbedtls_cipher_init( ctx );
#if !defined(MBEDTLS_USE_PSA_CRYPO) || !defined(MBEDTLS_TEST_DEPRECATED) #if !defined(MBEDTLS_USE_PSA_CRYPTO) || !defined(MBEDTLS_TEST_DEPRECATED)
(void) use_psa; (void) use_psa;
(void) tag_len; (void) tag_len;
#else #else
@ -1067,7 +1067,7 @@ void test_vec_crypt( int cipher_id, int operation, data_t *key,
memset( output, 0x00, sizeof( output ) ); memset( output, 0x00, sizeof( output ) );
/* Prepare context */ /* Prepare context */
#if !defined(MBEDTLS_USE_PSA_CRYPO) || !defined(MBEDTLS_TEST_DEPRECATED) #if !defined(MBEDTLS_USE_PSA_CRYPTO) || !defined(MBEDTLS_TEST_DEPRECATED)
(void) use_psa; (void) use_psa;
#else #else
if( use_psa == 1 ) if( use_psa == 1 )
@ -1095,7 +1095,7 @@ void test_vec_crypt( int cipher_id, int operation, data_t *key,
exit: exit:
mbedtls_cipher_free( &ctx ); mbedtls_cipher_free( &ctx );
#if defined(MBEDTLS_USE_PSA_CRYPO) && defined(MBEDTLS_TEST_DEPRECATED) #if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(MBEDTLS_TEST_DEPRECATED)
PSA_DONE( ); PSA_DONE( );
#endif /* MBEDTLS_USE_PSA_CRYPTO && defined(MBEDTLS_TEST_DEPRECATED */ #endif /* MBEDTLS_USE_PSA_CRYPTO && defined(MBEDTLS_TEST_DEPRECATED */
} }