mbedtls/tests
Gilles Peskine 7f420faf03 parse_attribute_value_hex_der_encoded: clean up length validation
Separate the fits-in-buffer check (*data_length <= data_size) from the
we-think-it's-a-sensible-size check (*data_length <=
MBEDTLS_X509_MAX_DN_NAME_SIZE).

This requires using an intermediate buffer for the DER data, since its
maximum sensible size has to be larger than the maximum sensible size for
the payload, due to the overhead of the ASN.1 tag+length.

Remove test cases focusing on the DER length since the implementation no
longer has a threshold for it.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-09-25 19:59:31 +02:00
..
.jenkins
configs Merge pull request #7961 from gilles-peskine-arm/psa_crypto_config-in-full 2023-09-18 08:13:12 +00:00
data_files Merge pull request #8025 from AgathiyanB/accept-numericoid-hexstring-x509 2023-09-13 08:54:33 +00:00
docker/bionic
git-scripts
include Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
opt-testcases Adapt names (curves -> groups) 2023-07-05 09:26:26 +02:00
scripts Fix SHA-3 in accel tests that need it 2023-09-24 09:48:47 +02:00
src Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
suites parse_attribute_value_hex_der_encoded: clean up length validation 2023-09-25 19:59:31 +02:00
.gitignore Add gitignore anchors to denote generated files 2023-07-06 17:58:18 +01:00
CMakeLists.txt New test suite for the low-level hash interface 2023-08-22 09:59:42 +02:00
compat-in-docker.sh
compat.sh Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile Allow turning off re-generation of files with make 2023-09-08 16:19:13 +02:00
ssl-opt-in-docker.sh
ssl-opt.sh Merge pull request #7921 from valeriosetti/issue7613 2023-09-20 12:47:55 +00:00