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 <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2022-04-06 14:54:46 +01:00
parent dbb9754541
commit 28428f45c7

View file

@ -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 );