From 28428f45c78546e82de07288590eff448ec3de79 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Wed, 6 Apr 2022 14:54:46 +0100 Subject: [PATCH] Corrects mistake from encrypt setup test This commit alters an ASSERT_COMPARE statement at the end of the aead_encrypt_setup test. This is to correct a mistake introduced by the preceding PR. Signed-off-by: Thomas Daubney --- tests/suites/test_suite_psa_crypto_driver_wrappers.function | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/suites/test_suite_psa_crypto_driver_wrappers.function b/tests/suites/test_suite_psa_crypto_driver_wrappers.function index 04846465c..e642ec781 100644 --- a/tests/suites/test_suite_psa_crypto_driver_wrappers.function +++ b/tests/suites/test_suite_psa_crypto_driver_wrappers.function @@ -2432,9 +2432,7 @@ void aead_encrypt_setup( int key_type_arg, data_t *key_data, /* Compare output_data and expected_ciphertext */ ASSERT_COMPARE( expected_ciphertext->x, expected_ciphertext->len, - output_data, output_length ); - - TEST_EQUAL( output_length + finish_output_length, expected_ciphertext->len ); + output_data, output_length + finish_output_length ); /* Compare tag and expected_tag */ ASSERT_COMPARE( expected_tag->x, expected_tag->len, tag_buffer, tag_length );