Commit Graph

  • 1fe065b235 Fix conditional compilation (MBEDTLS_USE_PSA_CRYPTO) Przemyslaw Stekiel 2022-01-13 15:56:33 +01:00
  • 2e9711f766 mbedtls_ssl_decrypt_buf(): replace mbedtls_cipher_crypt() and mbedtls_cipher_auth_decrypt_ext() with PSA calls Przemyslaw Stekiel 2022-01-13 14:50:15 +01:00
  • b37fae122c mbedtls_ssl_encrypt_buf(): replace mbedtls_cipher_crypt() and mbedtls_cipher_auth_encrypt_ext() with PSA calls Przemyslaw Stekiel 2022-01-13 14:28:44 +01:00
  • 76e1583483 Convert psa status to mbedtls Przemyslaw Stekiel 2022-01-12 11:54:49 +01:00
  • 11a33e6d90 Use PSA_BITS_TO_BYTES macro to convert key bits to bytes Przemyslaw Stekiel 2022-01-12 10:42:58 +01:00
  • ae77b0ab28 mbedtls_ssl_tls13_populate_transform: store the en/decryption keys and alg in the new fields Przemyslaw Stekiel 2022-01-12 10:29:03 +01:00
  • ffccda45df ssl_tls12_populate_transform: store the en/decryption keys and alg in the new fields Przemyslaw Stekiel 2022-01-11 14:44:01 +01:00
  • ce37d11c67 mbedtls_ssl_transform_free(): fix destruction of psa keys Przemyslaw Stekiel 2022-01-13 14:53:52 +01:00
  • 8f80fb9b1d Adapt in mbedtls_ssl_transform_init() and mbedtls_ssl_transform_free() after extending mbedtls_ssl_transform struct Przemyslaw Stekiel 2022-01-11 08:28:13 +01:00
  • 44187d7a3e Extend mbedtls_ssl_transform struct for psa keys and alg Przemyslaw Stekiel 2022-01-11 08:25:29 +01:00
  • 430f337b49 Add helper function to translate mbedtls cipher type/mode pair to psa: algorithm, key type and key size. Przemyslaw Stekiel 2022-01-10 11:55:46 +01:00
  • 657ff4fd09 Fix AEAD multipart incorrect offset in test_suite_psa_crypto.function Mircea Udrea 2022-01-31 13:51:56 +01:00
  • 69bb3f5332 Move hmac_non_psa out of psa/ directory Manuel Pégourié-Gonnard 2022-01-31 13:09:47 +01:00
  • 248b385f1b Add comments to AEAD (non-PSA) examples Manuel Pégourié-Gonnard 2022-01-31 12:56:39 +01:00
  • 6349794648 Demonstrate better practices in HMAC examples Manuel Pégourié-Gonnard 2022-01-31 12:23:37 +01:00
  • f392a02c50 Add comments to the HMAC (non-)PSA examples Manuel Pégourié-Gonnard 2022-01-31 12:06:07 +01:00
  • a9f32fbb21 Merge pull request #5382 from lhuang04/tls13_f_export_keys Paul Elliott 2022-01-28 12:09:19 +00:00
  • fd1d13c8bd Avoid requiring too much C99 support Manuel Pégourié-Gonnard 2022-01-28 12:52:35 +01:00
  • 7d5ef1731b Split aead_cipher_psa Manuel Pégourié-Gonnard 2022-01-27 13:09:13 +01:00
  • 24b781da3c Merge pull request #5473 from mpg/rm-dead-code Gilles Peskine 2022-01-28 12:14:37 +01:00
  • 6d42bb430c Update mbedtls_ssl_handshake_free() Xiaofei Bai 2022-01-28 08:52:13 +00:00
  • f7d704dbd2 Avoid dead code in some configurations Manuel Pégourié-Gonnard 2022-01-28 10:05:56 +01:00
  • f5b4d25cfa Add received_sig_algs member to struct mbedtls_ssl_handshake_params Xiaofei Bai 2022-01-28 06:37:15 +00:00
  • fb28b88e26 move client_auth to handshake Jerry Yu 2022-01-28 11:05:58 +08:00
  • d08ed95419 Formatting: remove tabs from check_config.h Andrzej Kurek 2022-01-27 11:03:09 -05:00
  • 38adac32e7 Add a changelog entry regarding bugfixes Andrzej Kurek 2022-01-24 10:09:38 -05:00
  • 19d6ab0fb8 Enable testing with PSA for config-mini-tls1_1 Andrzej Kurek 2022-01-27 11:01:24 -05:00
  • 1faa2a3c6e Add a check for MBEDTLS_PK_WRITE_C with USE_PSA_CRYPTO to check-config.h Andrzej Kurek 2022-01-27 11:00:24 -05:00
  • a3890a3427 Swap the client and server random for TLS 1.3 lhuang04 2022-01-04 09:47:20 -08:00
  • edf6e83cbc Split hmac_md_psa.c Manuel Pégourié-Gonnard 2022-01-27 12:36:39 +01:00
  • 1a45c713f0 Fix cleanup code Manuel Pégourié-Gonnard 2022-01-27 12:17:20 +01:00
  • 3aae30c224 Use PSA macros for buffer sizes Manuel Pégourié-Gonnard 2022-01-27 11:56:24 +01:00
  • beef9c231c Use better names for dummy data Manuel Pégourié-Gonnard 2022-01-27 11:42:47 +01:00
  • 428a97ed47 Improve option names Manuel Pégourié-Gonnard 2022-01-27 11:35:12 +01:00
  • 0e725c33d4 Improve introductory comments. Manuel Pégourié-Gonnard 2022-01-27 11:15:33 +01:00
  • 7ce0f2aa6b Wrap client_auth. Jerry Yu 2022-01-27 18:25:04 +08:00
  • fedefdd6f9 Merge pull request #5276 from xkqian/add_hello_retry_request Ronald Cron 2022-01-27 11:17:10 +01:00
  • 8499b6ce25 Only free verify_cookie in tls 1.3 case. XiaokangQian 2022-01-27 09:00:11 +00:00
  • 82f0a9a1db Rebase and address review comments Xiaofei Bai 2022-01-26 09:21:54 +00:00
  • a909061c2a Refine HRR parse successfully message in test cases XiaokangQian 2022-01-27 03:48:27 +00:00
  • 34909746df Change cookie free code and some comments XiaokangQian 2022-01-27 02:25:04 +00:00
  • ea4af4d345 Don't inline mbedtls_mpi_safe_cond_assign on MSVC/ARM64 to avoid a compiler bug. Signed-off-by: Tautvydas Žilys <tautvydas.zilys@gmail.com> Tautvydas Žilys 2022-01-26 15:33:27 -08:00
  • 60165d7708 Don't inline mbedtls_mpi_safe_cond_assign on MSVC/ARM64 to avoid a compiler bug. Signed-off-by: Tautvydas Žilys <tautvydas.zilys@gmail.com> Tautvydas Žilys 2022-01-26 15:33:27 -08:00
  • 19e83fa3a5 Restructure test-ref-configs to test with USE_PSA_CRYPTO turned on Andrzej Kurek 2022-01-17 16:05:43 +01:00
  • e001596d83 Add missing MBEDTLS_ASN1_WRITE_C dependency in test_suite_psa_crypto Andrzej Kurek 2022-01-17 15:29:38 +01:00
  • e2462ba437 Add missing dependencies on MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED Andrzej Kurek 2022-01-17 15:29:08 +01:00
  • c60cc1d7be Add missing dependency on MBEDTLS_GCM_C in cipher tests Andrzej Kurek 2022-01-17 15:27:23 +01:00
  • 53ad763848 Mark unused variable in tests for cases with reduced configs Andrzej Kurek 2022-01-17 15:26:24 +01:00
  • 52da558103 Change code base on comments XiaokangQian 2022-01-26 09:49:29 +00:00
  • aec1f3e913 Cookie fields are used only by DTLS 1.3 XiaokangQian 2022-01-26 06:57:00 +00:00
  • 7bae3b616c Add more ciphersuites into test cases for hrr XiaokangQian 2022-01-26 06:31:39 +00:00
  • b119a35d07 Refine fatal alert in parse_server_hello XiaokangQian 2022-01-26 03:29:10 +00:00
  • d59be77ce7 Refine code based on comments XiaokangQian 2022-01-24 10:12:51 +00:00
  • 0ece998287 Refine code in mbedtls_ssl_reset_transcript_for_hrr XiaokangQian 2022-01-24 08:56:23 +00:00
  • f1e7d12cb6 Fix compile issues in mbedtls_ssl_session_reset_msg_layer XiaokangQian 2022-01-21 05:49:57 +00:00
  • 43550bd761 Prepare function to parse hrr cookie extension XiaokangQian 2022-01-21 04:32:58 +00:00
  • 2b01dc30cb Add hrr no change check and allign mbedtls_ssl_session_reset_msg_layer XiaokangQian 2022-01-21 02:53:13 +00:00
  • 355e09ae9d Change code base on comments XiaokangQian 2022-01-20 11:14:50 +00:00
  • 78b1fa7e81 Update code base on comments XiaokangQian 2022-01-19 06:56:30 +00:00
  • 53f20b71c5 Improve ssl_tls13_parse_server_hello XiaokangQian 2022-01-18 10:47:33 +00:00
  • 6db08dd2cb Change ssl-opt.sh to make hrr tests pass XiaokangQian 2022-01-18 06:36:23 +00:00
  • d9e068e10b Change code based on comments XiaokangQian 2022-01-18 06:23:32 +00:00
  • 8945db36ab Reduce paramter hrr from ssl_tls13_parse_server_hello XiaokangQian 2022-01-17 05:38:29 +00:00
  • b48894eca4 Add buffer check for named group XiaokangQian 2022-01-17 02:05:52 +00:00
  • 16acd4b3e4 Reject the second HRR earlier and align naming styles XiaokangQian 2022-01-14 07:35:47 +00:00
  • b851da8a44 Re-construct the code to merge hello and hrr based on comments XiaokangQian 2022-01-14 04:03:11 +00:00
  • 0b56a8f85c Replace curve_list with group_list and add update test scripts XiaokangQian 2021-12-22 02:39:32 +00:00
  • 51eff22c9b Align oode style with server hello parse XiaokangQian 2021-12-10 10:33:56 +00:00
  • 647719a172 Add hello retry request in client side XiaokangQian 2021-12-07 09:16:29 +00:00
  • 69fcd39774 Update CertificateRequest tests and the parsing function Xiaofei Bai 2022-01-20 08:25:00 +00:00
  • de3f13e0b8 update based on comments Xiaofei Bai 2022-01-18 05:47:05 +00:00
  • f6d3696eda fix test failures Xiaofei Bai 2022-01-16 14:54:35 +00:00
  • a0ab777cfc update based on comments. Xiaofei Bai 2022-01-16 12:14:45 +00:00
  • 5d8598e090 update certificate request tests Xiaofei Bai 2022-01-11 05:56:06 +00:00
  • e1e344213a Add TLS1.3 process certificate request Xiaofei Bai 2021-12-23 12:09:05 +00:00
  • f51b79c297 Merge pull request #5355 from yuhaoth/pr/remove-duplicate-sig-alg-ext Ronald Cron 2022-01-26 10:05:26 +01:00
  • ed5e9f431d Change ecdsa sig_algs order for tls1.3 Jerry Yu 2022-01-26 11:21:34 +08:00
  • 3df1dae6c0 CMake: generate the list of test suites automatically Gilles Peskine 2022-01-25 22:30:25 +01:00
  • a18fb9d9ac Fix string/regexp backslash escapes Gilles Peskine 2022-01-25 23:24:34 +01:00
  • cd55fe02ef Remove accidental use of a feature that doesn't exist in CMake 3.5 Gilles Peskine 2022-01-25 23:13:49 +01:00
  • 29080e8e6a CMake: generate the list of test suites automatically Gilles Peskine 2022-01-25 22:30:25 +01:00
  • 05bf89da34 Clarify key types message from ssl_client2 and ssl_server2 Gilles Peskine 2022-01-25 17:50:25 +01:00
  • 8c681b7290 Add positive test case with self-signed certificates Gilles Peskine 2022-01-07 23:10:56 +01:00
  • 98dcb4c024 Merge pull request #5458 from AndrzejKurek/gitignore-eclipse-2-28 Gilles Peskine 2022-01-25 17:02:58 +01:00
  • 3de9d3a3ad Merge pull request #5455 from AndrzejKurek/gitignore-eclipse Gilles Peskine 2022-01-25 17:02:52 +01:00
  • cfb151889f Merge pull request #5457 from AndrzejKurek/key-id-encodes-owner-psa-fixes-follow-up Gilles Peskine 2022-01-25 17:02:35 +01:00
  • c6753a6c90 Merge pull request #5363 from AndrzejKurek/clarify-testing-set-nonce-set-lengths Gilles Peskine 2022-01-25 17:02:26 +01:00
  • efd696afb9 New option to list all test cases Gilles Peskine 2022-01-07 15:58:55 +01:00
  • 0c2f8ee3f0 Move collect_available_test_cases to check_test_cases.py Gilles Peskine 2022-01-07 15:58:38 +01:00
  • d5746aa13d Add eclipse-specific project files to gitignore Andrzej Kurek 2022-01-25 06:11:58 -05:00
  • 9d95d81eae Merge pull request #5359 from hanno-arm/mpi_montmul_remove_dead_code Manuel Pégourié-Gonnard 2022-01-25 13:00:19 +01:00
  • 24479b3185 Merge pull request #5395 from gilles-peskine-arm/ssl-opt-self-signed-positive Manuel Pégourié-Gonnard 2022-01-25 12:53:56 +01:00
  • cfc920a960 Remove incorrect incompatibility information from mbedtls_config.h Andrzej Kurek 2022-01-25 06:33:08 -05:00
  • 36fd329442 Add eclipse-specific project files to gitignore Andrzej Kurek 2022-01-25 06:11:58 -05:00
  • 220bda7f76 Rename a function parameter to avoid confusion Gilles Peskine 2022-01-25 12:03:34 +01:00
  • 0b994b8061 fix typo error Jerry Yu 2022-01-25 17:22:12 +08:00
  • 53037894ab change the defaut sig_algs order Jerry Yu 2022-01-25 11:02:06 +08:00
  • 18c833e2eb fix tls1_2 only sig_algs order issue Jerry Yu 2022-01-25 10:55:47 +08:00
  • f377d644f5 Refactor duplicate check Jerry Yu 2022-01-25 10:43:59 +08:00
  • 6ade743a43 Add mbedtls_printf alias for !PLATFORM_C Jerry Yu 2022-01-25 10:39:33 +08:00