mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-12 21:29:56 +00:00
Correct maximum size for chacha20
Signed-off-by: Ben Taylor <[email protected]> (cherry picked from commit 540c75e5a0fa787b6e4ffdaec33648f83b850b6a)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user