mbedtls/library
Ryan Everett c053d968f2 Make psa_destroy_key threadsafe
We do not require linearizability in the case of destroying a key in use.
Using a key and destroying it simultaneously will not cause any issues
as the user will only use the copy of the key in the slot.
Two simulatenous deletion calls to one key cannot interfere, the first caller
sets the slot's state to PENDING_DELETION, the second caller will back off.
Remove outdated comment about one key being in multiple slots, psa_open_key
does not put the key into a new slot.

Signed-off-by: Ryan Everett <ryan.everett@arm.com>
2024-01-29 17:06:34 +00:00
..
.gitignore Revert "Auto-generated files for v3.5.0" 2023-10-05 00:17:21 +01:00
aes.c Use optimised counter increment in AES-CTR and CTR-DRBG 2024-01-15 11:45:01 +00:00
aesce.c Remove redundant check 2023-11-30 11:02:03 +00:00
aesce.h Merge remote-tracking branch 'origin/development' into msft-aarch64 2023-11-30 11:01:50 +00:00
aesni.c Disable automatic setting of clang target flags on old clang 2023-12-19 13:11:47 +00:00
aesni.h Merge pull request #8124 from yanrayw/support_cipher_encrypt_only 2023-11-23 17:43:00 +00:00
alignment.h Remove include of build_info.h 2024-01-19 16:48:42 +00:00
aria.c Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only 2023-11-23 10:31:26 +08:00
asn1parse.c Header updates 2023-11-03 12:21:36 +00:00
asn1write.c Header updates 2023-11-03 12:21:36 +00:00
base64.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
base64_internal.h Header updates 2023-11-03 12:21:36 +00:00
bignum.c Merge remote-tracking branch 'origin/development' into msft-aarch64 2023-11-30 09:34:41 +00:00
bignum_core.c Header updates 2023-11-03 12:21:36 +00:00
bignum_core.h Header updates 2023-11-03 12:21:36 +00:00
bignum_mod.c Header updates 2023-11-03 12:21:36 +00:00
bignum_mod.h Header updates 2023-11-03 12:21:36 +00:00
bignum_mod_raw.c Header updates 2023-11-03 12:21:36 +00:00
bignum_mod_raw.h Header updates 2023-11-03 12:21:36 +00:00
bignum_mod_raw_invasive.h Header updates 2023-11-03 12:21:36 +00:00
block_cipher.c psa: add key_type as input parameter of psa_can_do_cipher() 2023-12-28 18:33:17 +01:00
block_cipher_internal.h block_cipher: add encrypt() 2023-11-10 12:14:53 +01:00
bn_mul.h Header updates 2023-11-03 12:21:36 +00:00
camellia.c Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only 2023-11-23 10:31:26 +08:00
ccm.c Merge pull request #8632 from valeriosetti/issue8598 2024-01-08 08:07:53 +00:00
chacha20.c Header updates 2023-11-03 12:21:36 +00:00
chachapoly.c Header updates 2023-11-03 12:21:36 +00:00
check_crypto_config.h Header updates 2023-11-03 12:21:36 +00:00
cipher.c Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only 2023-11-23 10:31:26 +08:00
cipher_wrap.c cipher_wrap: fix guards for some CCM/GCM functions 2024-01-02 17:20:58 +01:00
cipher_wrap.h Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only 2023-11-23 10:31:26 +08:00
cmac.c Header updates 2023-11-03 12:21:36 +00:00
CMakeLists.txt Merge remote-tracking branch 'restricted/development' into mbedtls-3.5.2rc 2024-01-24 09:49:15 +00:00
common.h Fix comment typo 2024-01-23 10:05:08 +00:00
constant_time.c Remove unused code 2023-12-01 13:53:45 +00:00
constant_time_impl.h Merge pull request #8515 from mschulz-at-hilscher/fixes/pragma-error-gcc452 2023-11-27 11:28:30 +00:00
constant_time_internal.h Header updates 2023-11-03 12:21:36 +00:00
ctr.h Add header guards 2024-01-17 11:06:31 +00:00
ctr_drbg.c Fix error in ctr_drbg 2024-01-16 17:28:25 +00:00
debug.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
des.c Header updates 2023-11-03 12:21:36 +00:00
dhm.c Use MBEDTLS_GET_UINTxx_BE macro 2023-11-21 17:09:46 +00:00
ecdh.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
ecdsa.c Header updates 2023-11-03 12:21:36 +00:00
ecjpake.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
ecp.c Make input parameter const 2024-01-02 17:56:54 +01:00
ecp_curves.c Header updates 2023-11-03 12:21:36 +00:00
ecp_curves_new.c Header updates 2023-11-03 12:21:36 +00:00
ecp_internal_alt.h Header updates 2023-11-03 12:21:36 +00:00
ecp_invasive.h Header updates 2023-11-03 12:21:36 +00:00
entropy.c Header updates 2023-11-03 12:21:36 +00:00
entropy_poll.c Update entropy_poll.c 2024-01-22 15:59:49 +05:30
entropy_poll.h Header updates 2023-11-03 12:21:36 +00:00
gcm.c Make gcm counter increment more efficient 2024-01-15 11:45:01 +00:00
hkdf.c Header updates 2023-11-03 12:21:36 +00:00
hmac_drbg.c Header updates 2023-11-03 12:21:36 +00:00
lmots.c Use standard byte conversion fns in lms 2023-11-21 17:09:46 +00:00
lmots.h Use standard byte conversion fns in lms 2023-11-21 17:09:46 +00:00
lms.c Use standard byte conversion fns in lms 2023-11-21 17:09:46 +00:00
Makefile Start adding internal module block_cipher.c 2023-11-10 11:21:17 +01:00
md.c Header updates 2023-11-03 12:21:36 +00:00
md5.c Header updates 2023-11-03 12:21:36 +00:00
md_psa.h md: move PSA conversion functions from md_psa.h to psa_util.h 2024-01-02 13:26:04 +01:00
md_wrap.h Header updates 2023-11-03 12:21:36 +00:00
memory_buffer_alloc.c Header updates 2023-11-03 12:21:36 +00:00
mps_common.h Fix some non-standard headers 2023-11-03 12:24:58 +00:00
mps_error.h Fix some non-standard headers 2023-11-03 12:24:58 +00:00
mps_reader.c Fix some non-standard headers 2023-11-03 12:24:58 +00:00
mps_reader.h Fix some non-standard headers 2023-11-03 12:24:58 +00:00
mps_trace.c Fix some non-standard headers 2023-11-03 12:24:58 +00:00
mps_trace.h Fix some non-standard headers 2023-11-03 12:24:58 +00:00
net_sockets.c Avoid use of ip_len as it clashes with a macro in AIX system headers 2023-12-08 21:51:15 +00:00
nist_kw.c Header updates 2023-11-03 12:21:36 +00:00
oid.c oid/pkparse: add missing guards for PKCS[5/12] functions when !CIPHER_C 2023-12-29 16:35:58 +01:00
padlock.c Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only 2023-11-23 10:31:26 +08:00
padlock.h Header updates 2023-11-03 12:21:36 +00:00
pem.c Revert "pem: auto add newlines to header/footer in mbedtls_pem_write_buffer()" 2023-12-19 07:48:38 +01:00
pk.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
pk_internal.h psa: remove bits_is_sloppy parameter from mbedtls_ecc_group_from_psa() 2024-01-09 13:41:52 +01:00
pk_wrap.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
pk_wrap.h pk_wrap: remove last references to MBEDTLS_PSA_CRYPTO_C 2023-12-20 12:59:57 +02:00
pkcs5.c pkcs[5/12]: add CIPHER_C for [en/de]crypting functions 2023-12-21 16:39:04 +01:00
pkcs7.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
pkcs12.c pkcs[5/12]: add CIPHER_C for [en/de]crypting functions 2023-12-21 16:39:04 +01:00
pkparse.c psa: remove bits_is_sloppy parameter from mbedtls_ecc_group_from_psa() 2024-01-09 13:41:52 +01:00
pkwrite.c pkwrite: add newlines when calling mbedtls_pem_write_buffer() 2023-12-19 07:48:42 +01:00
pkwrite.h Header updates 2023-11-03 12:21:36 +00:00
platform.c Header updates 2023-11-03 12:21:36 +00:00
platform_util.c Make mbedtls_xor always inline 2024-01-19 15:25:33 +00:00
poly1305.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto.c Make psa_destroy_key threadsafe 2024-01-29 17:06:34 +00:00
psa_crypto_aead.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_aead.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_cipher.c Merge pull request #8444 from Mbed-TLS/cvv-code-size 2023-11-06 12:50:37 +00:00
psa_crypto_cipher.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_client.c Error out when get domain_parameters is not supported 2023-12-08 17:30:26 +08:00
psa_crypto_core.h Refactor macros 2024-01-24 13:26:26 +00:00
psa_crypto_core_common.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_driver_wrappers_no_static.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_ecp.c Merge pull request #8666 from valeriosetti/issue8340 2024-01-18 13:58:55 +00:00
psa_crypto_ecp.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_ffdh.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_ffdh.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_hash.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_hash.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_invasive.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_its.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_mac.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_mac.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_pake.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_pake.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_random_impl.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_rsa.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
psa_crypto_rsa.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_se.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_se.h Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_slot_management.c Update psa_wipe_all_key_slots and document non-thread safety 2024-01-29 13:14:50 +00:00
psa_crypto_slot_management.h Update psa_wipe_all_key_slots and document non-thread safety 2024-01-29 13:14:50 +00:00
psa_crypto_storage.c Header updates 2023-11-03 12:21:36 +00:00
psa_crypto_storage.h Header updates 2023-11-03 12:21:36 +00:00
psa_its_file.c Use MBEDTLS_GET_UINTxx_BE macro 2023-11-21 17:09:46 +00:00
psa_util.c psa_util: rename parameter of mbedtls_ecc_group_from_psa 2024-01-09 13:41:53 +01:00
psa_util_internal.h psa_util: add error translations from PSA to cipher 2023-12-14 18:08:14 +01:00
ripemd160.c Header updates 2023-11-03 12:21:36 +00:00
rsa.c Merge remote-tracking branch 'restricted/development' into mbedtls-3.5.2rc 2024-01-24 09:49:15 +00:00
rsa_alt_helpers.c Header updates 2023-11-03 12:21:36 +00:00
rsa_alt_helpers.h rsa: introduce rsa_internal_rsassa_pss_sign_no_mode_check() 2023-12-20 12:59:57 +02:00
rsa_internal.h rsa: introduce rsa_internal_rsassa_pss_sign_no_mode_check() 2023-12-20 12:59:57 +02:00
sha1.c Header updates 2023-11-03 12:21:36 +00:00
sha3.c Header updates 2023-11-03 12:21:36 +00:00
sha256.c Merge remote-tracking branch 'origin/development' into msft-aarch64 2023-11-30 09:34:41 +00:00
sha512.c Merge remote-tracking branch 'origin/development' into msft-aarch64 2023-11-30 09:34:41 +00:00
ssl_cache.c Header updates 2023-11-03 12:21:36 +00:00
ssl_ciphersuites.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
ssl_client.c Consistent renaming 2023-12-08 10:01:58 +08:00
ssl_client.h Header updates 2023-11-03 12:21:36 +00:00
ssl_cookie.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
ssl_debug_helpers.h Header updates 2023-11-03 12:21:36 +00:00
ssl_misc.h Merge pull request #8526 from yanrayw/issue/7011/send_record_size_limit_ext 2024-01-12 13:39:15 +00:00
ssl_msg.c Revert back checking on handshake messages length 2023-12-14 16:23:25 +00:00
ssl_ticket.c Fix possible integer overflows before widening 2023-12-06 17:22:53 +00:00
ssl_tls.c Merge pull request #8666 from valeriosetti/issue8340 2024-01-18 13:58:55 +00:00
ssl_tls12_client.c Merge pull request #8579 from valeriosetti/issue7995 2023-12-20 08:20:10 +00:00
ssl_tls12_server.c Merge pull request #8633 from Wenxing-hou/clear_clienthello_comment 2023-12-21 12:09:23 +00:00
ssl_tls13_client.c Merge pull request #8666 from valeriosetti/issue8340 2024-01-18 13:58:55 +00:00
ssl_tls13_generic.c Merge pull request #8666 from valeriosetti/issue8340 2024-01-18 13:58:55 +00:00
ssl_tls13_invasive.h Header updates 2023-11-03 12:21:36 +00:00
ssl_tls13_keys.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
ssl_tls13_keys.h Fix some non-standard headers 2023-11-03 12:24:58 +00:00
ssl_tls13_server.c Merge pull request #8666 from valeriosetti/issue8340 2024-01-18 13:58:55 +00:00
threading.c Fix typo 2024-01-19 13:45:19 +00:00
timing.c Header updates 2023-11-03 12:21:36 +00:00
version.c Header updates 2023-11-03 12:21:36 +00:00
x509.c Header updates 2023-11-03 12:21:36 +00:00
x509_create.c Update fix to be more platform-independent 2024-01-22 15:31:05 +00:00
x509_crl.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
x509_crt.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
x509_csr.c Use size_t cast for pointer subtractions 2023-11-21 17:09:46 +00:00
x509write.c Header updates 2023-11-03 12:21:36 +00:00
x509write_crt.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00
x509write_csr.c library/tests: replace md_psa.h with psa_util.h as include file for MD conversion 2024-01-02 13:27:32 +01:00