mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-07 10:49:56 +00:00
Remove length checking from chacha20
Signed-off-by: Ben Taylor <[email protected]> (cherry picked from commit 21594d5f6daeb8b6f633d481d3335bd7399f8237)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user