mbedtls/library
Manuel Pégourié-Gonnard 564bc1bb96 Fix limitation in checking supported alg in pk_sign
The recent changes in pkparse made it so ECDSA (deterministic or not) is
set as the secondary alg and ECDH the first one. This broke the wrapper
in pk_wrap as it was only checking the first alg when deciding whether
to use deterministic or not. The wrapper should not have unnecessary
requirements on how algs are set up, so make the check more flexible.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2023-10-16 10:27:22 +02:00
..
.gitignore Revert "Auto-generated files for v3.5.0" 2023-10-05 00:17:21 +01:00
aes.c Merge pull request #8348 from kasjer/kasjer/aes-rcon-rename 2023-10-12 12:30:35 +00:00
aesce.c replace arm64 macro and aesce enable flag 2023-08-23 17:15:34 +08:00
aesce.h improve various issues 2023-08-28 10:58:24 +08:00
aesni.c Merge pull request #7384 from yuhaoth/pr/add-aes-accelerator-only-mode 2023-08-18 20:55:44 +00:00
aesni.h improve various issues 2023-08-28 10:58:24 +08:00
alignment.h Fix MBEDTLS_BSWAP32 on armcc 5 2023-07-11 14:06:37 +01:00
aria.c Switch to the new code style 2023-01-11 14:50:10 +01:00
asn1parse.c Reduce size of mbedtls_asn1_get_len 2023-09-21 10:35:33 +01:00
asn1write.c code style 2023-09-15 18:30:09 +01:00
base64.c Move base64 test interfaces into base64_internal.h 2023-05-26 12:42:48 +01:00
base64_internal.h Move base64 test interfaces into base64_internal.h 2023-05-26 12:42:48 +01:00
bignum.c Merge branch 'development-restricted' into mbedtls-3.5.0rc0-pr 2023-10-03 21:57:51 +01:00
bignum_core.c Improve sanity checking of MBEDTLS_HAVE_INTxx 2023-09-06 08:41:05 +01:00
bignum_core.h Improve docs for mbedtls_mpi_core_cond_assign 2023-07-31 12:27:05 +01:00
bignum_mod.c Remove new bignum when not needed 2023-08-17 14:36:59 +01:00
bignum_mod.h bignum_mod: Added a typedef for OPT_RED function pointer. 2023-06-22 09:14:28 +01:00
bignum_mod_raw.c Remove new bignum when not needed 2023-08-17 14:36:59 +01:00
bignum_mod_raw.h bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
bignum_mod_raw_invasive.h Update documentation 2023-01-23 19:10:26 +01:00
bn_mul.h Merge pull request #7784 from daverodgman/aesce-unroll 2023-07-04 18:41:13 +01:00
camellia.c Switch to the new code style 2023-01-11 14:50:10 +01:00
ccm.c Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
chacha20.c Switch to the new code style 2023-01-11 14:50:10 +01:00
chachapoly.c Eliminate duplicate ct memcmp 2023-09-18 19:09:45 +01:00
check_crypto_config.h library: replace PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_LEGACY symbols with proper ones 2023-07-11 14:06:00 +02:00
cipher.c Merge pull request #1083 from gilles-peskine-arm/development-restricted-merge-20230925 2023-09-25 18:16:01 +01:00
cipher_wrap.c cipher_wrap: remove 192- and 256-bit for AES_ONLY_128_BIT_KEY_LENGTH 2023-09-14 14:35:44 +08:00
cipher_wrap.h code style 2023-06-24 13:37:28 +01:00
cmac.c Merge pull request #1038 from Mbed-TLS/development 2023-07-21 15:40:36 +02:00
CMakeLists.txt Bump library so-crypto, so-x509, so-tls versions. 2023-10-04 16:17:46 +01:00
common.h Simplify fixes for unreachable code 2023-09-05 18:15:31 +01:00
constant_time.c Simplify mbedtls_ct_memcmp_partial 2023-09-19 17:21:50 +01:00
constant_time_impl.h Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
constant_time_internal.h Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
ctr_drbg.c Update links to Rijndael paper and NIST SP 800-90 DRBGs 2023-08-04 13:55:03 +01:00
debug.c Merge pull request #7999 from valeriosetti/issue7759 2023-08-10 08:34:57 +00:00
des.c Switch to the new code style 2023-01-11 14:50:10 +01:00
dhm.c Provide and use internal function mbedtls_zeroize_and_free() 2023-07-17 15:17:40 +01:00
ecdh.c Update SEC1 link in ecdh.c 2023-04-12 06:07:23 +00:00
ecdsa.c Fix a few unchecked value issue 2023-08-01 22:41:17 +08:00
ecjpake.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
ecp.c Use MBEDTLS_GET_UINT16_BE in mbedtls_ecp_tls_read_group_id 2023-08-16 17:50:36 +01:00
ecp_curves.c Move variant test to ecp_curves 2023-08-02 10:32:21 +01:00
ecp_curves_new.c Move variant test to ecp_curves 2023-08-02 10:32:21 +01:00
ecp_internal_alt.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ecp_invasive.h Move MBEDTLS_ECP_WITH_MPI_UINT to mbedtls_config.h 2023-07-31 10:57:16 +01:00
entropy.c Use MD-light in entropy.c 2023-03-24 10:43:40 +01:00
entropy_poll.c entropy_poll: Removed checks for windows versions < WINXP 2023-09-25 14:12:22 +01:00
entropy_poll.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
gcm.c Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
hkdf.c Switch to the new code style 2023-01-11 14:50:10 +01:00
hmac_drbg.c Fix instances of old feature macros being used 2023-03-24 10:43:40 +01:00
lmots.c Merge pull request #7935 from AgathiyanB/add-enum-casts 2023-07-26 11:27:27 +02:00
lmots.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
lms.c Merge pull request #7933 from tom-cosgrove-arm/add-mbedtls_zeroize_and_free 2023-08-03 12:56:21 +00:00
Makefile Revert "Auto-generated files for v3.5.0" 2023-10-05 00:17:21 +01:00
md.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
md5.c Ensure all md_<hash>_finish functions perform zeroization 2023-09-11 12:59:36 +01:00
md_psa.h Make MD<->PSA translation static inline 2023-06-08 12:10:03 +02:00
md_wrap.h Omit block_size when MD_C is not enabled 2023-06-21 12:02:07 +02:00
memory_buffer_alloc.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_common.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
mps_error.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
mps_reader.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_reader.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
mps_trace.c Switch to the new code style 2023-01-11 14:50:10 +01:00
mps_trace.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
net_sockets.c Merge pull request #7792 from robUx4/win32_winnt 2023-07-13 19:34:24 +01:00
nist_kw.c Use mbedtls_ct_error_if 2023-09-22 10:01:47 +01:00
oid.c Renaming all MBEDTLS_HAVE for curves to MBEDTLS_ECP_HAVE 2023-09-25 17:39:41 +02:00
padlock.c replace target arch macros in padlock 2023-08-23 17:15:35 +08:00
padlock.h improve various issues 2023-08-28 10:58:24 +08:00
pem.c Provide and use internal function mbedtls_zeroize_and_free() 2023-07-17 15:17:40 +01:00
pk.c Fix IAR pointless integer comparison 2023-09-28 17:19:50 +01:00
pk_internal.h Use helper macro for (deterministic) ECDSA 2023-10-16 10:27:22 +02:00
pk_wrap.c Fix limitation in checking supported alg in pk_sign 2023-10-16 10:27:22 +02:00
pk_wrap.h library: replace PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_LEGACY symbols with proper ones 2023-07-11 14:06:00 +02:00
pkcs5.c Revert "Fix a few IAR warnings" 2023-10-13 11:39:53 +02:00
pkcs7.c Update wording in comments 2023-03-13 12:15:49 +00:00
pkcs12.c Revert "Fix a few IAR warnings" 2023-10-13 11:39:53 +02:00
pkparse.c Fix unused warnings in dummy definition 2023-10-16 10:27:22 +02:00
pkwrite.c Merge pull request #8062 from yanrayw/save_stack_usage_pkwrite 2023-10-13 14:27:13 +00:00
pkwrite.h pkwrite: add new internal symbol to properly size DER buffer 2023-08-10 06:43:23 +02:00
platform.c Switch to the new code style 2023-01-11 14:50:10 +01:00
platform_util.c Avoid error from old gcc version 2023-09-01 11:15:28 +01:00
poly1305.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto.c Merge pull request #8075 from valeriosetti/issue8016 2023-09-27 14:39:02 +00:00
psa_crypto_aead.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_aead.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_cipher.c Use fewer bits for block_size 2023-06-24 13:37:28 +01:00
psa_crypto_cipher.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_client.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_core.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
psa_crypto_core_common.h psa: Introduce PSA crypto core common symbols 2023-03-31 09:07:57 +02:00
psa_crypto_driver_wrappers_no_static.h No need to include the 3rd party entry point head file 2023-09-26 09:09:20 +00:00
psa_crypto_ecp.c lib/test: replace BASIC_IMPORT_EXPORT internal symbol with BASIC,IMPORT,EXPORT 2023-06-30 10:16:22 +02:00
psa_crypto_ecp.h Merge pull request #7098 from gilles-peskine-arm/retval-non-empty 2023-02-24 09:10:53 +00:00
psa_crypto_ffdh.c psa: replace DH_KEY_PAIR_LEGACY with new symbols 2023-07-27 09:15:34 +02:00
psa_crypto_ffdh.h Merge pull request #7627 from mprse/ffdh_tls13_v2 2023-07-03 10:12:33 +02:00
psa_crypto_hash.c code style 2023-06-26 11:11:23 +01:00
psa_crypto_hash.h Remove useless extern declarations and includes 2023-06-21 09:45:36 +02:00
psa_crypto_invasive.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
psa_crypto_its.h Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_crypto_mac.c Fully replace mbedtls_psa_safer_memcmp 2023-08-29 14:20:18 +01:00
psa_crypto_mac.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_pake.c Correct styling of Mbed TLS in documentation 2023-10-06 17:07:24 +01:00
psa_crypto_pake.h Pacify clang15 warnings about empty /retval 2023-06-20 15:51:46 +01:00
psa_crypto_random_impl.h Use quotes include of psa_util_internal.h 2023-09-04 10:36:37 +02:00
psa_crypto_rsa.c Fix IAR pointless integer comparison 2023-09-28 17:19:50 +01:00
psa_crypto_rsa.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_se.c Implement and use MBEDTLS_STATIC_ASSERT() 2023-03-08 14:19:51 +00:00
psa_crypto_se.h Include psa/build_info.h instead of mbedtls/build_info.h 2023-10-10 09:35:22 +02:00
psa_crypto_slot_management.c Change the extension type of the file psa_crypto_driver_wrapper 2023-09-26 09:09:20 +00:00
psa_crypto_slot_management.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_storage.c Provide and use internal function mbedtls_zeroize_and_free() 2023-07-17 15:17:40 +01:00
psa_crypto_storage.h Define all PSA_xxx macros to 1 rather than have them empty, for consistency 2023-08-31 17:06:58 +01:00
psa_its_file.c Switch to the new code style 2023-01-11 14:50:10 +01:00
psa_util.c Use quotes include of psa_util_internal.h 2023-09-04 10:36:37 +02:00
psa_util_internal.h psa: fix missed LEGACY symbols caused by the rebase 2023-07-11 16:59:21 +02:00
ripemd160.c Ensure all md_<hash>_finish functions perform zeroization 2023-09-11 12:59:36 +01:00
rsa.c Use mbedtls_ct_error_if 2023-09-22 10:01:47 +01:00
rsa_alt_helpers.c Fix a few unchecked value issue 2023-08-01 22:41:17 +08:00
rsa_alt_helpers.h Switch to the new code style 2023-01-11 14:50:10 +01:00
sha1.c Ensure all md_<hash>_finish functions perform zeroization 2023-09-11 12:59:36 +01:00
sha3.c Remove always-false null pointer check in sha3.c that Coverity complains about 2023-09-11 09:03:01 +01:00
sha256.c Fix IAR control bypasses initialisation warning 2023-09-28 18:13:46 +01:00
sha512.c Fix IAR control bypasses initialisation warning 2023-09-28 18:13:46 +01:00
ssl_cache.c Merge pull request #7210 from sergio-nsk/patch-2 2023-09-13 16:38:55 +02:00
ssl_ciphersuites.c Fix IAR warnings 2023-10-05 13:30:37 +01:00
ssl_client.c Merge pull request #7921 from valeriosetti/issue7613 2023-09-20 12:47:55 +00:00
ssl_client.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ssl_cookie.c Fix wrong array size calculation in error translation code 2023-06-13 05:46:47 -04:00
ssl_debug_helpers.h refine ticket_flags printing helper 2023-01-16 11:28:49 +08:00
ssl_misc.h ssl: don't require MBEDTLS_ECP_DP with TLS1.3 2023-09-25 17:39:41 +02:00
ssl_msg.c Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
ssl_ticket.c Fix wrong array size calculation in error translation code 2023-06-13 05:46:47 -04:00
ssl_tls.c Fix IAR warnings 2023-10-05 13:30:37 +01:00
ssl_tls12_client.c Avoid compiler warning about size comparison 2023-10-02 16:11:05 +02:00
ssl_tls12_server.c Remove leftover local debug line 2023-10-02 18:43:18 +02:00
ssl_tls13_client.c Fix IAR warnings 2023-10-05 13:30:37 +01:00
ssl_tls13_generic.c Merge pull request #8309 from daverodgman/iar-warnings2 2023-10-06 13:24:12 +00:00
ssl_tls13_invasive.h Switch to the new code style 2023-01-11 14:50:10 +01:00
ssl_tls13_keys.c Add casting size_t to int 2023-10-11 15:28:06 +02:00
ssl_tls13_keys.h Enhancement: change some functions to static in ssl_tls13_keys.c 2023-01-12 14:54:26 +08:00
ssl_tls13_server.c Fix IAR warnings 2023-10-05 13:30:37 +01:00
threading.c Switch to the new code style 2023-01-11 14:50:10 +01:00
timing.c Switch to the new code style 2023-01-11 14:50:10 +01:00
version.c Switch to the new code style 2023-01-11 14:50:10 +01:00
x509.c Merge pull request #8025 from AgathiyanB/accept-numericoid-hexstring-x509 2023-09-13 08:54:33 +00:00
x509_create.c Revert "Fix a few IAR warnings" 2023-10-13 11:39:53 +02:00
x509_crl.c Provide and use internal function mbedtls_zeroize_and_free() 2023-07-17 15:17:40 +01:00
x509_crt.c x509_crt: Removed unused intsafe.h 2023-09-25 15:17:38 +01:00
x509_csr.c Provide and use internal function mbedtls_zeroize_and_free() 2023-07-17 15:17:40 +01:00
x509write.c Unify csr and crt san writing functions 2023-07-07 09:05:30 -04:00
x509write_crt.c Merge pull request #7898 from AndrzejKurek/csr-rfc822-dn 2023-08-16 09:19:46 +00:00
x509write_csr.c Merge pull request #7898 from AndrzejKurek/csr-rfc822-dn 2023-08-16 09:19:46 +00:00