Gilles Peskine 37a4fcc5b4 Prevent mbedtls_psa_register_se_key with volatile keys
mbedtls_psa_register_se_key() is not usable with volatile keys, since there
is no way to return the implementation-chosen key identifier which would be
needed to use the key. Document this limitation. Reject an attempt to create
such an unusable key. Fixes #9253.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-08-07 11:17:32 +02:00
..
.gitignore Ignore *.o everywhere 2023-05-12 13:57:39 +02:00
aes.c Update headers 2023-11-03 12:54:54 +00:00
aesni.c Update headers 2023-11-03 12:54:54 +00:00
arc4.c Update headers 2023-11-03 12:54:54 +00:00
aria.c Update headers 2023-11-03 12:54:54 +00:00
asn1parse.c Update headers 2023-11-03 12:54:54 +00:00
asn1write.c Update headers 2023-11-03 12:54:54 +00:00
base64.c Update headers 2023-11-03 12:54:54 +00:00
bignum_internal.h Align Montgomery init with development 2024-01-22 15:58:57 +00:00
bignum.c Fix 'missing prototype' warnings 2024-01-22 15:58:57 +00:00
blowfish.c Update headers 2023-11-03 12:54:54 +00:00
camellia.c Update headers 2023-11-03 12:54:54 +00:00
ccm.c Update headers 2023-11-03 12:54:54 +00:00
certs.c Update headers 2023-11-03 12:54:54 +00:00
chacha20.c Update headers 2023-11-03 12:54:54 +00:00
chachapoly.c Update headers 2023-11-03 12:54:54 +00:00
check_crypto_config.h Update headers 2023-11-03 12:54:54 +00:00
cipher_wrap.c Update headers 2023-11-03 12:54:54 +00:00
cipher.c Update headers 2023-11-03 12:54:54 +00:00
cmac.c Update headers 2023-11-03 12:54:54 +00:00
CMakeLists.txt Merge pull request #8875 from stevenwdv/mbedtls-2.28 2024-03-29 13:59:14 +00:00
common.h MBEDTLS_STATIC_ASSERT: make it work outside of a function 2024-08-07 11:17:32 +02:00
constant_time_internal.h Update headers 2023-11-03 12:54:54 +00:00
constant_time_invasive.h Update headers 2023-11-03 12:54:54 +00:00
constant_time.c Update headers 2023-11-03 12:54:54 +00:00
ctr_drbg.c Update headers 2023-11-03 12:54:54 +00:00
debug.c Update headers 2023-11-03 12:54:54 +00:00
des.c Update headers 2023-11-03 12:54:54 +00:00
dhm.c Update headers 2023-11-03 12:54:54 +00:00
ecdh.c Update headers 2023-11-03 12:54:54 +00:00
ecdsa.c Update headers 2023-11-03 12:54:54 +00:00
ecjpake.c Update headers 2023-11-03 12:54:54 +00:00
ecp_curves.c Reduce many unnecessary static memory consumption 2024-02-07 21:48:12 +08:00
ecp_invasive.h Update headers 2023-11-03 12:54:54 +00:00
ecp.c Allow null buffers when the length is 0 2024-02-26 12:38:16 +01:00
entropy_poll.c Fixed issue of redefinition warning messages for _GNU_SOURCE 2024-05-02 14:47:54 +05:30
entropy.c Update headers 2023-11-03 12:54:54 +00:00
error.c Update headers 2023-11-03 12:54:54 +00:00
gcm.c Allow GCM IV to be NULL if zero-length 2024-02-01 19:38:22 +00:00
havege.c Update headers 2023-11-03 12:54:54 +00:00
hkdf.c Update headers 2023-11-03 12:54:54 +00:00
hmac_drbg.c Update headers 2023-11-03 12:54:54 +00:00
Makefile Add a selftest run for the TIMING_ALT test 2023-01-26 04:33:59 -05:00
md2.c Update headers 2023-11-03 12:54:54 +00:00
md4.c Update headers 2023-11-03 12:54:54 +00:00
md5.c Update headers 2023-11-03 12:54:54 +00:00
md.c Update headers 2023-11-03 12:54:54 +00:00
memory_buffer_alloc.c Update headers 2023-11-03 12:54:54 +00:00
mps_common.h Update headers 2023-11-03 12:54:54 +00:00
mps_error.h Update headers 2023-11-03 12:54:54 +00:00
mps_reader.c Update headers 2023-11-03 12:54:54 +00:00
mps_reader.h Update headers 2023-11-03 12:54:54 +00:00
mps_trace.c Update headers 2023-11-03 12:54:54 +00:00
mps_trace.h Update headers 2023-11-03 12:54:54 +00:00
net_sockets.c Backport 2.28: Avoid use of ip_len as it clashes with a macro in AIX system headers 2023-12-08 21:53:18 +00:00
nist_kw.c Update headers 2023-11-03 12:54:54 +00:00
oid.c Fix the build without check_config.h (inclusion of limits.h) 2024-05-17 19:00:46 +02:00
padlock.c Update headers 2023-11-03 12:54:54 +00:00
pem.c Update headers 2023-11-03 12:54:54 +00:00
pk_wrap.c Fix mbedtls_pk_get_bitlen() for RSA with non-byte-aligned sizes 2024-02-12 17:00:48 +01:00
pk.c Update headers 2023-11-03 12:54:54 +00:00
pkcs5.c Update headers 2023-11-03 12:54:54 +00:00
pkcs11.c Update headers 2023-11-03 12:54:54 +00:00
pkcs12.c Update headers 2023-11-03 12:54:54 +00:00
pkparse.c Update headers 2023-11-03 12:54:54 +00:00
pkwrite.c Update headers 2023-11-03 12:54:54 +00:00
platform_util.c fix build for midipix 2024-01-31 14:14:27 +01:00
platform.c Update headers 2023-11-03 12:54:54 +00:00
poly1305.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_aead.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_aead.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_cipher.c Fix ASAN error for psa_cipher_update 2024-02-29 16:41:49 +00:00
psa_crypto_cipher.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_client.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_core.h Remove LOCAL_OUTPUT_ALLOC_WITH_COPY 2024-03-12 17:54:55 +00:00
psa_crypto_driver_wrappers.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_driver_wrappers.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_ecp.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_ecp.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_hash.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_hash.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_invasive.h Change to use test-hook-based approach 2023-12-20 14:49:41 +00:00
psa_crypto_its.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_mac.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_mac.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_random_impl.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_rsa.c Fix the build without check_config.h (inclusion of limits.h) 2024-05-17 19:00:46 +02:00
psa_crypto_rsa.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_se.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_se.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_slot_management.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_slot_management.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_storage.c Update headers 2023-11-03 12:54:54 +00:00
psa_crypto_storage.h Update headers 2023-11-03 12:54:54 +00:00
psa_crypto.c Prevent mbedtls_psa_register_se_key with volatile keys 2024-08-07 11:17:32 +02:00
psa_its_file.c Update headers 2023-11-03 12:54:54 +00:00
ripemd160.c Update headers 2023-11-03 12:54:54 +00:00
rsa_internal.c Update headers 2023-11-03 12:54:54 +00:00
rsa.c Align Montgomery init with development 2024-01-22 15:58:57 +00:00
sha1.c Update headers 2023-11-03 12:54:54 +00:00
sha256.c Update headers 2023-11-03 12:54:54 +00:00
sha512.c Update headers 2023-11-03 12:54:54 +00:00
ssl_cache.c Update headers 2023-11-03 12:54:54 +00:00
ssl_ciphersuites.c Update headers 2023-11-03 12:54:54 +00:00
ssl_cli.c Update headers 2023-11-03 12:54:54 +00:00
ssl_cookie.c Update headers 2023-11-03 12:54:54 +00:00
ssl_msg.c Fix the build without check_config.h (inclusion of limits.h) 2024-05-17 19:00:46 +02:00
ssl_srv.c Update headers 2023-11-03 12:54:54 +00:00
ssl_ticket.c Update headers 2023-11-03 12:54:54 +00:00
ssl_tls13_keys.c Update header 2023-11-03 12:58:29 +00:00
ssl_tls13_keys.h Update headers 2023-11-03 12:54:54 +00:00
ssl_tls.c Set psk to NULL in ssl_psk_remove-backport to 2.28 2024-06-11 13:00:28 -07:00
threading.c Update headers 2023-11-03 12:54:54 +00:00
timing.c Update library/timing.c 2024-01-18 12:25:18 +01:00
version_features.c Update generated files with inverted option 2024-03-14 11:21:34 +00:00
version.c Update headers 2023-11-03 12:54:54 +00:00
x509_create.c Fix Issue #8687 2024-01-22 16:00:07 +00:00
x509_crl.c Update headers 2023-11-03 12:54:54 +00:00
x509_crt.c Fix the build without check_config.h (inclusion of limits.h) 2024-05-17 19:00:46 +02:00
x509_csr.c Update headers 2023-11-03 12:54:54 +00:00
x509.c Update headers 2023-11-03 12:54:54 +00:00
x509write_crt.c Update headers 2023-11-03 12:54:54 +00:00
x509write_csr.c Update headers 2023-11-03 12:54:54 +00:00
xtea.c Update headers 2023-11-03 12:54:54 +00:00