Commit Graph

  • eab2055bde Fix query_config.c generation with CMake build system Ronald Cron 2023-08-30 17:36:25 +02:00
  • 33fbd373be Merge pull request #8174 from Mbed-TLS/fix-pkwrite-test-dependencies Ronald Cron 2023-09-08 08:16:52 +02:00
  • e008890afa Update generated files Gilles Peskine 2023-09-07 19:20:34 +02:00
  • 1f59ee078f Add correct dependencies to pkcs12 tests Waleed Elmelegy 2023-09-07 17:59:35 +01:00
  • 096017023d Fix identation error in pkcs12 tests Waleed Elmelegy 2023-09-07 17:48:40 +01:00
  • 8ece2e9712 Fix incorrect test dependencies in pkwrite tests fix-pkwrite-test-dependencies David Horstmann 2023-09-07 17:43:12 +01:00
  • 75b9eb36b4 Change pkcs12 test comparison macro to the new macro Waleed Elmelegy 2023-09-07 17:02:37 +01:00
  • 937b91eb6f Fix boolean options in the wrong section Gilles Peskine 2023-09-07 17:40:16 +02:00
  • 86733834bc Modernize documentation of MBEDTLS_PLATFORM_ZEROIZE_ALT Gilles Peskine 2023-09-07 15:02:39 +02:00
  • 8317e91b1e Change pkcs12 test allocation macros to the new macros Waleed Elmelegy 2023-09-07 15:46:58 +01:00
  • d3d566f1d8 PSA config: Add comment about HKDF Ronald Cron 2023-09-07 14:29:12 +02:00
  • b9c7953442 pkwrite: Fix defined but not used warning Ronald Cron 2023-09-07 14:20:49 +02:00
  • c5944d4a3c all.sh: fix a typo Yanray Wang 2023-09-07 17:58:49 +08:00
  • 56e27b9938 des: don't consider DES for CIPHER_ENCRYPT_ONLY Yanray Wang 2023-09-07 16:25:22 +08:00
  • 4f4822c553 Revert "des: add CIPHER_ENCRYPT_ONLY dependency for test cases" Yanray Wang 2023-09-07 16:22:01 +08:00
  • 9b811658a8 Merge remote-tracking branch 'origin/development' into support_cipher_encrypt_only Yanray Wang 2023-09-07 16:18:00 +08:00
  • 8cae2c2eb5 Use the zeroize function from Mbed TLS Gilles Peskine 2023-09-06 19:42:35 +02:00
  • 58590983c5 Merge pull request #8160 from daverodgman/warn-unreachable Gilles Peskine 2023-09-06 09:47:03 +00:00
  • d1ce030de2 Merge pull request #8159 from gilles-peskine-arm/split-config_psa-split Gilles Peskine 2023-09-06 09:04:19 +00:00
  • 85061b97b5 Improve sanity checking of MBEDTLS_HAVE_INTxx Dave Rodgman 2023-09-06 08:41:05 +01:00
  • 4b0b97e18b pkwrite: zeroize buf containing info of private key Yanray Wang 2023-08-28 10:35:39 +08:00
  • c9d5ea9a9c pkwrite.c: write ChangeLog accurately Yanray Wang 2023-08-21 15:17:43 +08:00
  • b59b7c643b pkwrite.c: call calloc and free properly Yanray Wang 2023-08-21 15:15:19 +08:00
  • 79873bcf56 pkwrite: add Changelog entry Yanray Wang 2023-08-11 16:15:14 +08:00
  • a8f00508fe pkwrite.c: add a cleanup label to save code size Yanray Wang 2023-08-11 15:52:09 +08:00
  • 7bbca1363f pkwrite.c: save stack usage for pk_write_key_pem Yanray Wang 2023-08-11 15:33:07 +08:00
  • 217416a76e pkwrite.c: save stack usage for pk_write_pubkey_pem Yanray Wang 2023-08-11 15:03:51 +08:00
  • b7b8c09c81 Update bignum_core.c Dave Rodgman 2023-09-05 20:35:19 +01:00
  • f9e4caf388 Comment out default definition Gilles Peskine 2023-09-05 21:11:27 +02:00
  • ff2558a470 Fix unused variable in some TLS 1.3 builds Gilles Peskine 2023-09-05 21:10:39 +02:00
  • d65ea42262 Fix some TLS 1.3 settings that were required in mbedtls_config.h Gilles Peskine 2023-09-05 21:07:32 +02:00
  • da69eaa366 TLS 1.3 support is mostly complete Gilles Peskine 2023-09-05 20:54:17 +02:00
  • a8861e086e Fix boolean options in the wrong section Gilles Peskine 2023-09-05 20:20:51 +02:00
  • 7e1e7be8fc Simplify fixes for unreachable code Dave Rodgman 2023-09-05 18:12:33 +01:00
  • f0accf28ea Merge pull request #1054 from waleed-elmelegy-arm/backport-add-new-pkcs5-pbe2-ext-fun Gilles Peskine 2023-09-05 18:52:21 +02:00
  • cfa722324c Fix warnings about unreachable code Dave Rodgman 2023-09-05 16:20:33 +01:00
  • 15de809e1a Improve pkcs12 pbe tests Waleed Elmelegy 2023-09-05 15:51:48 +01:00
  • 0364c8a773 Introduce MBEDTLS_IGNORE_UNREACHABLE_BEGIN Dave Rodgman 2023-09-05 16:20:19 +01:00
  • 255db80910 Improve & test legacy mbedtls_pkcs12_pbe * Prevent pkcs12_pbe encryption when PKCS7 padding has been disabled since this not part of the specs. * Allow decryption when PKCS7 padding is disabled for legacy reasons, However, invalid padding is not checked. * Document new behaviour, known limitations and possible security concerns. * Add tests to check these scenarios. Test data has been generated by the below code using OpenSSL as a reference: Waleed Elmelegy 2023-09-04 15:11:22 +01:00
  • 94d319065a Set input cost as 1 for psa_key_exercise test Kusumit Ghoderao 2023-09-05 19:30:22 +05:30
  • 7c61ffcc44 Rename parse_binary_string function Kusumit Ghoderao 2023-09-05 19:29:47 +05:30
  • 945d674c8d Merge pull request #8157 from actonlang/fix-include-psa-utils-internals Paul Elliott 2023-09-05 12:52:19 +00:00
  • 06c466d869 Merge pull request #8158 from tom-cosgrove-arm/rename-assert_compare-to-test_assert_compare-2.28 Dave Rodgman 2023-09-05 10:18:39 +00:00
  • edc237938a Split build_info.h: create and populate mbedtls/config_adjust_ssl.h Gilles Peskine 2023-09-04 17:53:11 +02:00
  • dc720b0a70 Split build_info.h: create mbedtls/config_adjust_x509.h Gilles Peskine 2023-09-04 17:50:28 +02:00
  • 9d6a63b4fb Split build_info.h: create and populate mbedtls/config_adjust_legacy_crypto.h Gilles Peskine 2023-09-04 17:49:07 +02:00
  • 4fb1542354 Split config_psa.h: create and populate mbedtls/config_adjust_legacy_from_psa.h Gilles Peskine 2023-09-04 17:41:36 +02:00
  • 10c6f07963 Split config_psa.h: create and populate mbedtls/config_adjust_psa_from_legacy.h Gilles Peskine 2023-09-04 17:36:35 +02:00
  • eca0178cfa Split config_psa.h: create and populate mbedtls/config_adjust_psa_superset_legacy.h Gilles Peskine 2023-09-04 16:58:54 +02:00
  • 5823977981 Split config_psa.h: create and populate psa/crypto_adjust_auto_enabled.h Gilles Peskine 2023-09-04 16:56:06 +02:00
  • 7b7d903cac Split config_psa.h: create and populate psa/crypto_adjust_config_synonyms.h Gilles Peskine 2023-09-04 16:55:14 +02:00
  • b9664ee676 Don't include configuration adjustment headers Gilles Peskine 2023-09-04 16:54:38 +02:00
  • 5dfaca4af5 all.sh: fix comments Valerio Setti 2023-09-05 08:48:51 +02:00
  • 8bd8a462d2 Merge pull request #8141 from tom-cosgrove-arm/define-psa-macros-to-1 Tom Cosgrove 2023-09-04 21:27:01 +00:00
  • 5c46332184 Merge pull request #8146 from tom-cosgrove-arm/define-psa-macros-to-1-2.28 Tom Cosgrove 2023-09-04 22:26:54 +01:00
  • 525e355563 Change pkcs5 test dependencies from MBEDTLS_SHA1_C to MBEDTLS_MD_CAN_SHA1 Waleed Elmelegy 2023-09-04 18:20:32 +01:00
  • 09f0a97d74 Fix typo in pkcs5.c Waleed-Ziad Maamoun-Elmelegy 2023-08-31 20:47:15 +01:00
  • d2a03cb6b8 Fix mbedtls_pkcs5_pbes test function failure Waleed Elmelegy 2023-08-30 13:12:09 +01:00
  • dffb1e3d66 Improve mbedtls_pkcs5_pbes2_ext changelog description Waleed Elmelegy 2023-08-29 14:56:15 +01:00
  • dcad168acf Improve mbedtls_pkcs5_pbes2_ext function test data Waleed Elmelegy 2023-08-29 14:55:03 +01:00
  • 7aeb6e7610 Add changelog entry for new mbedtls_pkcs5_pbe2_ext function Waleed Elmelegy 2023-08-17 16:00:58 +01:00
  • 7d8f95b4e2 Improve mbedtls_pkcs5_pbes2_ext function signature comments Waleed Elmelegy 2023-08-17 15:08:03 +01:00
  • d4e57c3623 Fix unused parameters warnings when MBEDTLS_CIPHER_PADDING_PKCS7 is disabled Waleed Elmelegy 2023-08-04 11:39:01 +01:00
  • 23ae41626c Fix heap overflow issue in pkcs5_pbes2 testing functions Waleed Elmelegy 2023-08-03 16:14:13 +01:00
  • b66cb65410 Add new mbedtls_pkcs5_pbe2_ext function Waleed Elmelegy 2023-08-01 14:56:30 +01:00
  • 4ce9ac8463 Add round trip tests for x509 RDNs Agathiyan Bragadeesh 2023-09-04 16:18:26 +01:00
  • fca0861e8e Add asn1 get tag and len to x509 create config Agathiyan Bragadeesh 2023-09-04 15:45:37 +01:00
  • 86dc08599b Add asn1 write tag and len to x509 use c config Agathiyan Bragadeesh 2023-09-04 14:53:30 +01:00
  • 7373a6644d driver-only-builds.md: fix text Valerio Setti 2023-09-04 13:59:03 +02:00
  • 894258f03c ssl-opt.sh doesn't actually use OPENSSL_LEGACY: remove unused function Gilles Peskine 2023-08-30 16:38:56 +02:00
  • 9bb5d495e8 Detect GnuTLS support for TLS-RSA-WITH-NULL-SHA256 Gilles Peskine 2023-08-28 17:59:47 +02:00
  • 1a7d387072 Merge pull request #1041 from waleed-elmelegy-arm/add-new-pkcs5-pbe2-ext-fun Gilles Peskine 2023-09-04 15:33:42 +02:00
  • 3574ec27fe Merge pull request #1052 from yanesca/add_everest_to_threat_model Janos Follath 2023-09-04 14:05:13 +01:00
  • a240fe3c19 Fix code style Tom Cosgrove 2023-09-04 11:29:39 +01:00
  • ba3b14dad9 For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() Tom Cosgrove 2023-09-04 11:23:02 +01:00
  • cd5a7c76f2 Rename the length argument to TEST_CALLOC() to be the more accurate item_count Tom Cosgrove 2023-07-21 11:34:44 +01:00
  • 30ceb23f3e For tests, rename TEST_CALLOC_OR_FAIL() to just TEST_CALLOC() Tom Cosgrove 2023-09-04 11:20:19 +01:00
  • 20e27de0bb For tests, rename ASSERT_ALLOC_WEAK() to TEST_CALLOC_OR_SKIP() Tom Cosgrove 2023-09-04 11:09:08 +01:00
  • 1357502bca For tests, rename ASSERT_ALLOC() to TEST_CALLOC_OR_FAIL() Tom Cosgrove 2023-09-04 11:05:59 +01:00
  • f88ee8b007 For tests, rename ASSERT_COMPARE() to TEST_BUFFERS_EQUAL() Tom Cosgrove 2023-09-04 11:04:40 +01:00
  • a1aeff4124 Use quotes include of psa_util_internal.h Kristian Larsson 2023-09-04 10:19:27 +02:00
  • 8595984d72 Merge pull request #8143 from tom-cosgrove-arm/check-mbedtls_platform_zeroize-calls Dave Rodgman 2023-09-03 11:22:06 +00:00
  • 9302684155 Merge pull request #8145 from tom-cosgrove-arm/check-mbedtls_platform_zeroize-calls-2.28 Dave Rodgman 2023-09-03 11:22:03 +00:00
  • b2fafa5a49 config-wrapper-zeroize-memset.h should be user-config-zeroize-memset.h and not include mbedtls_config.h Tom Cosgrove 2023-09-01 14:40:21 +01:00
  • d9572c0270 Move the description of MBEDTLS_TEST_DEFINES_ZEROIZE to before its use Tom Cosgrove 2023-09-01 14:34:37 +01:00
  • 7eced7d1d2 Move zeroize-as-memset into a config file under tests/ Tom Cosgrove 2023-09-01 13:55:39 +01:00
  • daddf11a30 Add a build to all.sh to check mbedtls_platform_zeroize() calls Tom Cosgrove 2023-09-01 10:40:15 +01:00
  • 351a391011 Fix incorrect use of mbedtls_platform_zeroize() in tests Tom Cosgrove 2023-09-01 09:54:04 +01:00
  • 42b02a909c Add the ability to verify mbedtls_platform_zeroize() calls with -Wsizeof-pointer-memaccess Tom Cosgrove 2023-09-01 09:53:42 +01:00
  • 4f69668558 Merge pull request #8082 from daverodgman/misc-code-size Dave Rodgman 2023-09-02 11:44:31 +00:00
  • 662c497395 Merge pull request #8144 from daverodgman/zeroize-stronger Dave Rodgman 2023-09-02 10:59:12 +01:00
  • 1dab445804 Update guard for ecp Dave Rodgman 2023-09-01 09:59:51 +01:00
  • 16a76721b6 Merge pull request #8068 from paul-elliott-arm/fix_tls_zeroization Dave Rodgman 2023-09-01 23:35:23 +00:00
  • 4d43f2ed0e Add Everest to threat model Janos Follath 2023-09-01 16:22:25 +01:00
  • 02ad791f29 Merge pull request #8116 from gilles-peskine-arm/config_psa-changelog-3.5 Tom Cosgrove 2023-09-01 13:53:44 +00:00
  • 5ffb19741d config-wrapper-zeroize-memset.h should be user-config-zeroize-memset.h and not include mbedtls_config.h Tom Cosgrove 2023-09-01 14:40:21 +01:00
  • 95b5d79cbf Move the description of MBEDTLS_TEST_DEFINES_ZEROIZE to before its use Tom Cosgrove 2023-09-01 14:34:37 +01:00
  • 7f18f44053 Move zeroize-as-memset into a config file under tests/ Tom Cosgrove 2023-09-01 13:55:39 +01:00
  • 83ae22dbbd Add Changelog entry Paul Elliott 2023-08-11 16:46:15 +01:00
  • 73285cc075 Define all PSA_xxx macros to 1 rather than have them empty, for consistency Tom Cosgrove 2023-09-01 13:07:39 +01:00