Commit Graph

  • ae2668be97 Don't use mbedtls_pk_ec in our own code Gilles Peskine 2024-02-01 20:48:04 +01:00
  • 7e353ba37a Create auxiliary function for repeated code Gilles Peskine 2024-02-01 20:46:19 +01:00
  • 19411635a5 Test enrollment algorithm for the non-OPAQUE case Gilles Peskine 2024-02-01 20:42:28 +01:00
  • e208b25b79 Minor documentation improvements Gilles Peskine 2024-02-01 20:42:21 +01:00
  • 90b94ff85f Allow GCM IV to be NULL if zero-length David Horstmann 2024-02-01 19:32:46 +00:00
  • 38dbab9f8d tests: ssl: Adjust early data test Ronald Cron 2024-02-01 19:31:56 +01:00
  • 78a38f607c tls13: srv: Do not use early_data_status Ronald Cron 2024-02-01 18:30:31 +01:00
  • 3b9034544e Revert "tls13: Introduce early_data_state SSL context field" Ronald Cron 2024-02-01 18:11:05 +01:00
  • 164537c4a6 tls13: early data: Improve, add comments Ronald Cron 2024-02-01 18:05:47 +01:00
  • 56cfe2fab6 test_suite_rsa: improve rsa_parse_write_pkcs1_key() and rsa_key_write_incremental() Valerio Setti 2024-02-01 17:53:26 +01:00
  • 5fe9f6699b rsa_internal: update documentation for parse/write functions Valerio Setti 2024-02-01 17:35:56 +01:00
  • 201e643509 rsa: simplify mbedtls_rsa_parse_pubkey() input parameters Valerio Setti 2024-02-01 17:19:37 +01:00
  • 135ebde273 rsa: rename parse/write functions in order to follow the standard format Valerio Setti 2024-02-01 17:00:29 +01:00
  • 44ff9506dd rsa: set parse/write functions out of !RSA_ALT guard Valerio Setti 2024-02-01 16:51:05 +01:00
  • ed7d4bfda5 tls13: srv: Simplify mbedtls_ssl_read_early_data() API Ronald Cron 2024-01-31 07:55:19 +01:00
  • 44d70a5f23 tls13: early data: Improve documentation Ronald Cron 2024-01-30 18:16:47 +01:00
  • 2c4308958d ssl.h: Fix comments Ronald Cron 2024-01-30 18:11:11 +01:00
  • 0883b8b625 tls13: Introduce early_data_state SSL context field Ronald Cron 2024-01-30 16:13:34 +01:00
  • 7d21cded3f ssl.h: Simplify guard Ronald Cron 2024-01-30 14:37:55 +01:00
  • 7b6ee9482e tls13: srv: Reject early data in case of HRR Ronald Cron 2024-01-12 10:29:55 +01:00
  • 579bd4d46b Update early data test Jerry Yu 2023-11-16 15:37:10 +08:00
  • 192e0f9b1d ssl_server2: Add read early data support Jerry Yu 2022-12-16 18:55:06 +08:00
  • d9ca354dbd tls13: srv: Add mbedtls_ssl_read_early_data() API Jerry Yu 2023-12-06 17:23:52 +08:00
  • 3a04562ace Update mbedtls_ssl_read_early_data() definition Ronald Cron 2024-01-08 18:44:59 +01:00
  • 032985c351 Add MBEDTLS_ERR_SSL_RECEIVED_EARLY_DATA error code Jerry Yu 2023-12-06 17:59:33 +08:00
  • 6a5904db45 tls13: srv: Move early data size check placeholder Jerry Yu 2023-12-06 17:11:12 +08:00
  • 739a1d4246 tls: Add internal function ssl_read_application_data() Jerry Yu 2022-12-08 21:10:25 +08:00
  • 5d0ae9021f tls13: srv: Refine early data status Ronald Cron 2024-01-05 14:20:35 +01:00
  • 149b0e7ca2 ssl.h: Fix comment Ronald Cron 2024-01-05 14:25:03 +01:00
  • 52ed54b949 psa_crypto_rsa: remove unnecessary casting Valerio Setti 2024-02-01 16:29:01 +01:00
  • 9e520f7ea9 changelog: improve descriptions Valerio Setti 2024-02-01 15:50:44 +01:00
  • 3ecb395fb9 test_suite_psa_crypto_util: fix tests for 0-length and one 0x00 byte for r and s Valerio Setti 2024-02-01 15:26:24 +01:00
  • 2d73baf171 psa_util: convert_der_to_raw_single_int: ensure the input DER integers have valid length Valerio Setti 2024-02-01 15:25:17 +01:00
  • ba8e9addd9 Fix test dependencies Dave Rodgman 2024-02-01 13:54:46 +00:00
  • 0b2835d1fd Fix accidental copy paste mistake Paul Elliott 2024-02-01 13:27:04 +00:00
  • 11cc41265b Merge pull request #8711 from ronald-cron-arm/tls13-ticket-and-early-data-unit-test Ronald Cron 2024-02-01 13:15:55 +00:00
  • ae942ece47 Fix style issues Paul Elliott 2024-02-01 12:44:01 +00:00
  • 24e9a32c83 Refactor to help future other implementations Paul Elliott 2024-02-01 12:26:23 +00:00
  • cb88c4945a Merge pull request #8754 from Redfoxymoon/development Paul Elliott 2024-02-01 10:01:49 +00:00
  • 6b36a5db07 Merge pull request #8771 from Redfoxymoon/mbedtls-2.28 Paul Elliott 2024-02-01 10:00:58 +00:00
  • 6823247376 Fix compile warning in tests Dave Rodgman 2024-01-31 15:59:06 +00:00
  • 9efc60298f Fix code style issues Paul Elliott 2024-01-31 15:33:23 +00:00
  • b2c9f0e2df Disable poisoning with PSA_CRYPTO_DRIVER_TEST David Horstmann 2024-01-31 14:38:15 +00:00
  • eb84534ee3 Use TEST_EQUAL instead of TEST_ASSERT where possible Ronald Cron 2024-01-31 14:48:23 +01:00
  • 5de9c6f295 Fix and add comments in ticket and early data test function Ronald Cron 2024-01-31 14:45:16 +01:00
  • a103ec9ad4 Make one shot operations thread safe Ryan Everett 2024-01-31 13:59:57 +00:00
  • 095a3a5a29 Fix PSA init and done macros in TLS unit tests Ronald Cron 2024-01-31 14:34:22 +01:00
  • fb792cad31 Make psa_get_and_lock_X_with_policy threadsafe Ryan Everett 2024-01-31 13:40:05 +00:00
  • eb1722a2b9 Add a wrapper function for psa_unregister_read Ryan Everett 2024-01-31 13:36:39 +00:00
  • faf026c67c Explain purpose of test specific write/parse ticket functions Ronald Cron 2024-01-31 14:32:06 +01:00
  • 2f1f17201d Make psa_get_and_lock_key_slot threadsafe Ryan Everett 2024-01-31 13:31:00 +00:00
  • 4c92845210 Merge pull request #8767 from daverodgman/sha-glibc-changelog Dave Rodgman 2024-01-31 13:21:52 +00:00
  • 6ad1fd133f Update psa_get_and_lock_key_slot_in_memory Ryan Everett 2024-01-31 13:21:33 +00:00
  • 670100f475 fix build for midipix Ørjan Malde 2024-01-31 14:14:27 +01:00
  • 1ee85b4c61 Merge pull request #8766 from tom-cosgrove-arm/unify-clang-version-checking-in-all.sh Paul Elliott 2024-01-31 12:51:34 +00:00
  • 3122f4da50 psa_util: invert check order for leading zeros in convert_der_to_raw_single_int() Valerio Setti 2024-01-31 11:16:46 +01:00
  • efcc555002 test_suite_psa_crypto_util: add test with 0-length s Valerio Setti 2024-01-31 11:15:37 +01:00
  • f1562a7217 Merge pull request #8657 from gilles-peskine-arm/pk-psa-bridge-design Manuel Pégourié-Gonnard 2024-01-31 09:51:43 +00:00
  • a888645bb8 test_suite_rsa: add test for key write with incremental output size Valerio Setti 2024-01-30 17:35:49 +01:00
  • 53fac3f7c0 Cipher: maybe translate metadata Gilles Peskine 2024-01-30 21:52:11 +01:00
  • 65f9cd80ee Random generation: nothing to do Gilles Peskine 2024-01-30 21:27:31 +01:00
  • 3f547e46e0 Key derivation: nothing to do Gilles Peskine 2024-01-30 21:27:17 +01:00
  • 8dba1b9108 MAC: nothing to do Gilles Peskine 2024-01-30 21:27:01 +01:00
  • 5c5210f7e1 Remove state transitions in psa_load_X_key_into_slot Ryan Everett 2024-01-30 18:27:16 +00:00
  • fad978b232 Fix race condition with test comparison functions Paul Elliott 2024-01-30 18:00:26 +00:00
  • 3af9bc18f3 Wrap get_and_lock_key_slot_in_memory calls in mutex Ryan Everett 2024-01-30 17:21:57 +00:00
  • 91372f5549 test_suite_rsa: add more test cases for RSA key parsing Valerio Setti 2024-01-30 17:01:15 +01:00
  • dae21d3808 Support SHA-512 hwcap detection on old libc Dave Rodgman 2024-01-30 15:31:42 +00:00
  • f988f95b9a test_suite_bignum: add test function: mpi_zero_length_buffer_is_null() Valerio Setti 2024-01-30 14:40:31 +01:00
  • 779a1a5b20 aria: remove leftover in comments Valerio Setti 2024-01-30 11:40:24 +01:00
  • 76e4c6352d test_suite_aria: remove NOT_DEFINED dependency from aria_invalid_param() Valerio Setti 2024-01-30 11:33:32 +01:00
  • cbb9caead4 Changelog for building SHA-256 and 512 with old libc Gilles Peskine 2023-02-16 23:40:40 +01:00
  • 36dee75368 Update ECDSA signature conversion based on experimentation Gilles Peskine 2024-01-30 16:15:17 +01:00
  • 252311d41e test_suite_psa_crypto_util: add test with 0-length for r Valerio Setti 2024-01-30 15:50:28 +01:00
  • 98e1931a0a test_suite_psa_crypto_util: alloc/free buffer inside loop in ecdsa_raw_to_der_incremental() Valerio Setti 2024-01-30 15:46:02 +01:00
  • 78da7468ca psa_util: minor improvements to convert_der_to_raw_single_int() Valerio Setti 2024-01-30 15:08:40 +01:00
  • d4c373a597 Refactor all.sh clang version detection code Tom Cosgrove 2024-01-30 13:56:38 +00:00
  • 9e4eeff6e0 Fix comment about verison of clang required for 'build_aes_armce' Tom Cosgrove 2024-01-30 13:51:18 +00:00
  • 2a6cb5c881 fix build for midipix Ørjan Malde 2024-01-26 12:51:35 +00:00
  • f446b8917d Conditionally include exit label Thomas Daubney 2024-01-30 13:36:01 +00:00
  • c63e31af8b Generate test wrappers Thomas Daubney 2024-01-30 13:33:14 +00:00
  • 290aac472a Implement safe buffer copying in asymmetric signature API Thomas Daubney 2024-01-18 17:23:02 +00:00
  • 3e65f52130 Conditionally guard exit label Thomas Daubney 2024-01-30 12:37:25 +00:00
  • f430f47434 Generate test wrappers Thomas Daubney 2024-01-30 12:25:35 +00:00
  • 4f8847bb5d Implement safe buffer copying in asymmetric signature API Thomas Daubney 2024-01-18 17:23:02 +00:00
  • 03aa9bc226 Switch pk_setup_for_type() to return MBEDTLS_ERR_xxx Gilles Peskine 2024-01-30 11:08:44 +01:00
  • 3da3c0a000 Always call psa_crypto_init when testing mbedtls_pk_get_psa_attributes Gilles Peskine 2024-01-30 10:22:29 +01:00
  • f8c2cd1489 Update preprocessor guard comment Gilles Peskine 2024-01-30 10:18:36 +01:00
  • e0c13cffb3 Update some msg descriptions Gilles Peskine 2024-01-30 10:17:49 +01:00
  • f35d24479e Merge pull request #1166 from daverodgman/ct-cmac Tom Cosgrove 2024-01-30 09:54:02 +01:00
  • 307ce2cff5 test_psa_compliance: use the last upstream release of psa-arch-tests Valerio Setti 2024-01-30 08:05:20 +01:00
  • 763971f32e Comment on locking strategy in psa_destroy_key Ryan Everett 2024-01-29 17:13:36 +00:00
  • 7a795fd951 suite_psa_crypto_util: add more test cases for DER->RAW Valerio Setti 2024-01-29 18:08:42 +01:00
  • c053d968f2 Make psa_destroy_key threadsafe Ryan Everett 2024-01-25 17:56:32 +00:00
  • 122c94fd26 psa_util: remove raw_len param from convert_der_to_raw_single_int() Valerio Setti 2024-01-29 18:02:03 +01:00
  • ee5238fcf4 suite_psa_crypto_util: add more testing for mbedtls_ecdsa_raw_to_der() Valerio Setti 2024-01-29 17:34:07 +01:00
  • 9b9b5a52d9 psa_util: some code improvement to convert_der_to_raw_single_int() Valerio Setti 2024-01-29 16:53:03 +01:00
  • 16abd59a62 Update psa_wipe_all_key_slots and document non-thread safety Ryan Everett 2024-01-24 17:37:46 +00:00
  • b0821959ae Make psa_purge_key thread safe Ryan Everett 2024-01-24 11:42:32 +00:00
  • f23336e040 Make psa_close_key thread safe Ryan Everett 2024-01-24 11:39:21 +00:00