mbedtls/tests
Gilles Peskine 5f50420dc8 cipher_encrypt_alg_without_iv: validate size macros independently
Validate the size macros directly from the output length in the test data,
rather than using the value returned by the library. This is equivalent
since the value returned by the library is checked to be identical.

Enforce that SIZE() <= MAX_SIZE(), in addition to length <= SIZE(). This is
stronger than the previous code which merely enforced length <= SIZE() and
length <= MAX_SIZE().

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-04-20 20:58:04 +02:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Add header guard around malloc(0) returning NULL implementation 2022-03-04 15:25:42 -05:00
data_files More precise testing of dhm_min_len 2021-04-01 14:18:31 +02:00
docker/bionic Remove accidental requirement on the worktree content 2021-12-02 13:19:19 +01:00
git-scripts Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
include Fix ARIA support in test driver configuration 2022-04-12 17:15:56 +02:00
scripts Mbed TLS supports RC4 only with 128-bit keys 2022-04-20 20:58:04 +02:00
src No need to recalculate iv_length 2022-04-20 20:58:04 +02:00
suites cipher_encrypt_alg_without_iv: validate size macros independently 2022-04-20 20:58:04 +02:00
.gitignore tests: Add build of a PSA test driver library 2021-11-30 14:49:19 +01:00
CMakeLists.txt CMake: generate the list of test suites automatically 2022-01-25 23:28:51 +01:00
compat-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
compat.sh Add comment in compat.sh about callers 2022-04-14 09:29:01 +02:00
context-info.sh Merge pull request #3614 from gilles-peskine-arm/ssl-opt-gnutls-printf-development 2020-11-04 17:55:42 +01:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile tests: Add build of a PSA test driver library 2021-11-30 14:49:19 +01:00
ssl-opt-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl-opt.sh Fix an off-by-one error in ssl-opt.sh 2022-04-06 13:38:15 -04:00