Gilles Peskine 793920c1ff mbedtls_pk_get_psa_attributes: opaque: require specified usage
In the MBEDTLS_PK_OPAQUE, have mbedtls_pk_get_psa_attributes() require the
specified usage to be enabled for the specified key. Otherwise the following
call to mbedtls_pk_import_into_psa() is unlikely to result in a key with a
useful policy, so the call to mbedtls_pk_get_psa_attributes() was probably
an error.

Adjust the existing test cases accordingly and add a few negative test
cases.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-02-01 21:31:27 +01:00
..
.jenkins
configs
data_files
docker/bionic
git-scripts
include tests: add PSA_INIT/PSA_DONE to CCM and GCM test suites 2023-12-14 18:08:14 +01:00
opt-testcases
scripts Update some msg descriptions 2024-01-30 10:17:49 +01:00
src Merge pull request #7455 from KloolK/record-size-limit/comply-with-limit 2024-01-09 15:22:17 +00:00
suites mbedtls_pk_get_psa_attributes: opaque: require specified usage 2024-02-01 21:31:27 +01:00
.gitignore
CMakeLists.txt Explicitly link tests with pthreads 2023-12-18 14:49:34 +00:00
compat-in-docker.sh
compat.sh
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile Unify MBEDTLS_TEST_OBJS 2024-01-02 23:11:24 +01:00
ssl-opt-in-docker.sh
ssl-opt.sh Merge pull request #8526 from yanrayw/issue/7011/send_record_size_limit_ext 2024-01-12 13:39:15 +00:00