Skip to content

Commit 966526a

Browse files
committed
fixup! psa: Disallow use of invalid MAC contexts
1 parent f1c9c53 commit 966526a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/suites/test_suite_psa_crypto.function

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ exit:
22302230
/* BEGIN_CASE */
22312231
void mac_operation_init( )
22322232
{
2233-
const uint8_t input[1];
2233+
const uint8_t input[1] = { 0 };
22342234

22352235
/* Test each valid way of initializing the object, except for `= {0}`, as
22362236
* Clang 5 complains when `-Wmissing-field-initializers` is used, even
@@ -2461,8 +2461,6 @@ void mac_sign( int key_type_arg,
24612461
actual_mac, mac_buffer_size,
24622462
&mac_length ) );
24632463

2464-
/* Ensure double sign fails properly. */
2465-
24662464
/* Compare with the expected value. */
24672465
ASSERT_COMPARE( expected_mac->x, expected_mac->len,
24682466
actual_mac, mac_length );

0 commit comments

Comments
 (0)