Remove length checking from chacha20

Signed-off-by: Ben Taylor <[email protected]>
(cherry picked from commit 21594d5f6daeb8b6f633d481d3335bd7399f8237)
This commit is contained in:
Ben Taylor
2026-06-11 14:10:53 +01:00
parent 176bea08b7
commit 77a2831999
+1 -2
View File
@@ -6367,8 +6367,7 @@ void aead_multipart_state_test(int key_type_arg, data_t *key_data,
#if SIZE_MAX > UINT32_MAX
PSA_ASSERT(psa_aead_encrypt_setup(&operation, key, alg));
if (operation.alg == PSA_ALG_GCM ||
operation.alg == PSA_ALG_CHACHA20_POLY1305) {
if (operation.alg == PSA_ALG_GCM) {
TEST_EQUAL(psa_aead_set_lengths(&operation, additional_data->len,
0xfffffffe * 64 + 1),
PSA_ERROR_INVALID_ARGUMENT);