Correct maximum size for chacha20

Signed-off-by: Ben Taylor <[email protected]>
(cherry picked from commit 540c75e5a0fa787b6e4ffdaec33648f83b850b6a)
This commit is contained in:
Ben Taylor
2026-06-11 14:10:47 +01:00
parent e1641d00e2
commit 176bea08b7
+1 -1
View File
@@ -6370,7 +6370,7 @@ void aead_multipart_state_test(int key_type_arg, data_t *key_data,
if (operation.alg == PSA_ALG_GCM ||
operation.alg == PSA_ALG_CHACHA20_POLY1305) {
TEST_EQUAL(psa_aead_set_lengths(&operation, additional_data->len,
SIZE_MAX),
0xfffffffe * 64 + 1),
PSA_ERROR_INVALID_ARGUMENT);
TEST_EQUAL(psa_aead_set_nonce(&operation, nonce->x, nonce->len),
PSA_ERROR_BAD_STATE);