mbedtls/tests
Gilles Peskine 5f573f8301 Fix broken test with MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
When testing the lifecycle of a transient key, it doesn't make much sense to
try psa_open_key: that expects a persistent key and the lookup takes a
different path. The error from psa_open_key is also different depending on
whether MBEDTLS_PSA_CRYPTO_STORAGE_C is enabled.

To check that the key ownership is taken into account, try to access the
same key id with a different owner without expecting that this is a
persistent key. Just call psa_get_key_attributes, which works fine for a
transient key.

This fixes a test failure when MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER is
enabled and MBEDTLS_PSA_CRYPTO_STORAGE_C is disabled.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-09-26 17:15:52 +08: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 Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Add SHA-3 support to libtestdriver1 2023-09-24 09:48:45 +02:00
opt-testcases Adapt names (curves -> groups) 2023-07-05 09:26:26 +02:00
scripts test-ref-configs: test config-tfm.h 2023-09-26 17:15:52 +08:00
src Merge pull request #8092 from silabs-Kusumit/PBKDF2_output_key 2023-09-22 18:01:06 +00:00
suites Fix broken test with MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER 2023-09-26 17:15:52 +08: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 Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
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 Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
Makefile Fix the tests build with mingw for the new Win32 APIs 2023-09-25 14:12:20 +01:00
ssl-opt-in-docker.sh Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
ssl-opt.sh Merge pull request #7921 from valeriosetti/issue7613 2023-09-20 12:47:55 +00:00