mbedtls/tests
John Durkop 2ec2eaac31 Fix test issues with depends-hashes
Needed to make additional fixes so that when MBEDTLS_USE_PSA_CRYPTO
is defined, the depends-hashes test will succeed. There are two
versions of the ecdsa_verify_wrap() function, one with
MBEDTLS_USE_PSA_CRYPTO and when when it is not enabled. The non PSA
version is not using the md_alg parameter since it is not required.
The PSA version was using that parameter to derive a different value
it needed for PSA_ALG_ECDSA. The arguement of PSA_ALG_ECDSA is
ignored for psa_sign_hash and psa_verify_hash. It is present because
it is used and must be a valid hash, not zero, for psa_sign_hash
(but not psa_verify_hash) with PSA_ALG_DETERMINISTIC_ECDSA, and it is
needed for psa_sign_message and psa_verify_message which are not
implemented yet. The local parameter now uses PSA_ALG_ECDSA_ANY for
the verify function to avoid using the md_alg parameter and avoids
returning incorrect error codes.

Fixes #3587

Signed-off-by: John Durkop <john.durkop@fermatsoftware.com>
2020-09-08 05:40:41 -07:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Add a test component with malloc(0) returning NULL 2020-02-11 19:26:28 +01:00
data_files Add test: DNS names should not match IP addresses 2020-08-11 10:23:52 +02:00
docker/bionic Improve compatibility with firewalled networks 2019-06-29 17:45:34 -05:00
git-scripts Add a pre-commit hook that checks generated files 2020-07-16 10:54:38 +02:00
include/test Rework mbedtls_test_unhexify() 2020-06-26 10:45:16 +02:00
scripts Fix test issues with depends-hashes 2020-09-08 05:40:41 -07:00
src Use arc4random_buf instead of rand on NetBSD 2020-08-03 17:56:50 +02:00
suites Merge pull request #3554 from mpg/x509-verify-non-dns-san-dev 2020-08-14 11:32:22 +02:00
.gitignore tests: Add helpers.c and helpers.h files 2020-06-12 14:33:00 +02:00
CMakeLists.txt Add comments explaining include paths 2020-07-02 15:59:45 +02:00
compat-in-docker.sh Clean up file prologue comments 2019-06-29 17:45:34 -05:00
compat.sh Merge pull request #3404 from mpg/improve-ssl-opt-logs 2020-08-17 12:04:36 +02:00
context-info.sh Add Apache-2.0 headers to all scripts 2020-06-15 12:05:47 +02: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 Clean up file prologue comments 2019-06-29 17:45:34 -05:00
Makefile Add comments explaining include paths 2020-07-02 15:59:45 +02:00
ssl-opt-in-docker.sh Clean up file prologue comments 2019-06-29 17:45:34 -05:00
ssl-opt.sh Merge pull request #3404 from mpg/improve-ssl-opt-logs 2020-08-17 12:04:36 +02:00