mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 14:50:17 +08:00
Remove length checking from chacha20
Signed-off-by: Ben Taylor <ben.taylor@linaro.org> (cherry picked from commit 21594d5f6daeb8b6f633d481d3335bd7399f8237)
This commit is contained in:
parent
176bea08b7
commit
77a2831999
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user