Commit Graph

  • 84554e9830 test: use better naming for the newly introduced test function Valerio Setti 2023-04-27 10:06:45 +02:00
  • 2d81499026 pk: fix position for mbedtls_platform_zeroize Valerio Setti 2023-04-27 10:05:03 +02:00
  • 8820b57b6e test: fix makefile for ec_pub.[der/pem] generation Valerio Setti 2023-04-27 10:03:08 +02:00
  • d860a79029 test: fix wrong private key file Valerio Setti 2023-04-27 09:41:09 +02:00
  • 1751341b68 test: add test function for public key derivation starting from private one Valerio Setti 2023-04-26 14:48:43 +02:00
  • 2c50526476 pk: fix: clear buffer holding raw EC private key on exit Valerio Setti 2023-04-26 13:08:56 +02:00
  • c8b7865612 test: align ec_pub public keyfile with its ec_prv.sec1 counterpart Valerio Setti 2023-04-26 12:24:26 +02:00
  • 8e076e4132 Merge pull request #6915 from aditya-deshpande-arm/example-driver-post-codestyle Manuel Pégourié-Gonnard 2023-05-02 12:13:42 +02:00
  • c69614bec0 Merge pull request #7505 from valeriosetti/issue7460-part1-backport Manuel Pégourié-Gonnard 2023-05-02 10:44:15 +02:00
  • f317df98ea Merge pull request #7461 from valeriosetti/issue7460-part1 Manuel Pégourié-Gonnard 2023-05-02 10:44:13 +02:00
  • d60dfc0e43 Add test for parse_binary_string Kusumit Ghoderao 2023-05-01 17:39:27 +05:30
  • 6f400a376e Disallow leading zeroes when parsing IPv4 addresses Andrzej Kurek 2023-05-01 05:26:47 -04:00
  • 935255cb3c MBEDTLS_PSA_INJECT_ENTROPY: ignore seed file Gilles Peskine 2023-04-29 00:32:34 +02:00
  • b377229b65 MBEDTLS_PSA_INJECT_ENTROPY: check the seed file UID Gilles Peskine 2023-04-28 21:13:43 +02:00
  • f13469da48 MBEDTLS_PSA_INJECT_ENTROPY: check the lifecycle of the seed file Gilles Peskine 2023-04-28 21:08:46 +02:00
  • fb4c3fe4ea Modernize remove_seed_file() Gilles Peskine 2023-04-28 21:07:07 +02:00
  • 801c4333ad Test MBEDTLS_PSA_INJECT_ENTROPY Gilles Peskine 2023-04-28 21:04:28 +02:00
  • c548468b69 MBEDTLS_PSA_INJECT_ENTROPY: Skip incompatible tests Gilles Peskine 2023-04-28 23:41:38 +02:00
  • c2d16b2159 MBEDTLS_PSA_INJECT_ENTROPY: Make sure the seed file exist when running tests Gilles Peskine 2023-04-28 23:39:45 +02:00
  • a08def9871 Tests: provide necessary functions for MBEDTLS_PSA_INJECT_ENTROPY Gilles Peskine 2023-04-28 21:01:49 +02:00
  • 672a771227 Fix a build error when MBEDTLS_PSA_INJECT_ENTROPY is enabled Gilles Peskine 2023-04-28 21:00:28 +02:00
  • 4bdb254887 Regroup component that had gotten separated from its close siblings Gilles Peskine 2023-04-28 19:25:25 +02:00
  • 8225587fd7 Change from Mbed TLS 3.3.0 to 3.4.0 in driver documentation. Aditya Deshpande 2023-04-28 15:37:57 +01:00
  • 641cb8914d Minor changes to documentation and code comments for clarity Aditya Deshpande 2023-04-19 03:31:10 +01:00
  • 7b9934dcdd Add support for building p256-m alongside Mbed TLS with CMake. Also check if p256-m is enabled in the config before including the contents of p256-m.c Aditya Deshpande 2023-04-18 17:00:17 +01:00
  • ac363d8d20 Migrate p256-m_driver_entrypoints.[hc] to new code style Aditya Deshpande 2023-03-21 18:56:31 +00:00
  • ebd624e691 Minor formatting change to driver wrapper jinja template Aditya Deshpande 2023-03-21 15:23:07 +00:00
  • f100f00679 Add warnings to documentation stating that p256-m code may be out of date with upstream, plus other minor grammatical fixes. Aditya Deshpande 2023-03-21 14:49:31 +00:00
  • be55bb2d5d Use psa_generate_random() instead of mbedtls_ctr_dbrg Aditya Deshpande 2023-02-21 18:07:13 +00:00
  • 8d99f2590c Add 3rdparty license information to the README Aditya Deshpande 2023-02-20 17:30:52 +00:00
  • 045b370c66 Add SPDX license identifiers to driver entry point files Aditya Deshpande 2023-02-20 17:08:30 +00:00
  • a8d663d3af Add README and license from the p256-m repo Aditya Deshpande 2023-02-20 15:16:37 +00:00
  • bac592d53e Remove rand() from p256_generate_random() and move to an implementation based on mbedtls_ctr_drbg Aditya Deshpande 2023-02-14 14:55:49 +00:00
  • caed18e741 Add README in p256-m/ Aditya Deshpande 2023-02-08 14:26:23 +00:00
  • a9612d00a4 Remove unnecessary no-check-names comments Aditya Deshpande 2023-02-07 10:32:49 +00:00
  • f80b939096 Add information for driver points where auto-generation is implemented Aditya Deshpande 2023-02-06 17:07:03 +00:00
  • 755b174fec Add example for integrating a driver alongside Mbed TLS for entrypoints where auto-generation of driver wrappers is not implemented yet. Using p256-m as the example driver/software accelerator. Aditya Deshpande 2023-01-24 17:02:56 +00:00
  • 695e44b5a0 Rename p256m to p256 for uniform function/macro prefixes Aditya Deshpande 2023-01-23 14:59:29 +00:00
  • abf4bf31cb Start the driver example write-up (p256-m integration) Aditya Deshpande 2023-01-23 14:47:03 +00:00
  • 277690e944 Add step-by-step guide for writing and integrating drivers for entry points where auto-generation is not implemented Aditya Deshpande 2023-01-18 11:27:26 +00:00
  • e41f7e457f Integrate p256-m as an example driver alongside Mbed TLS and write documentation for the example. Aditya Deshpande 2023-01-12 16:29:02 +00:00
  • 75095cce74 mbedtls_psa_ffdh_set_prime_generator: use switch instead if-else Przemek Stekiel 2023-04-28 14:20:27 +02:00
  • 4ce523256b Fix definition of PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE (ECC vs FFDH max) Przemek Stekiel 2023-04-28 13:40:34 +02:00
  • eb511a4495 Update config files to make PSA FFDH undependent on MBEDTLS_DHM_C Przemek Stekiel 2023-04-28 13:20:16 +02:00
  • dca0501089 Adjust code style for pointer types and casts Gilles Peskine 2023-04-26 19:59:28 +02:00
  • 47903b17e9 typo Gilles Peskine 2023-04-26 19:57:46 +02:00
  • 97f5cff2a2 Add test cases with a question mark Gilles Peskine 2023-04-26 19:50:57 +02:00
  • 5be40834e4 Fix wrong comment Gilles Peskine 2023-02-23 21:55:59 +01:00
  • f089972625 Explain the format argument expected by the test functions Gilles Peskine 2023-02-23 21:54:59 +01:00
  • c2fda4b7fb Fix typos in test descriptions Gilles Peskine 2023-02-23 21:54:06 +01:00
  • c627917439 Test the line number returned by parse_test_data Gilles Peskine 2023-02-23 20:47:24 +01:00
  • f599ddfb43 Remove string hack for mbedtls_mpi_mod_int testing Gilles Peskine 2022-12-04 15:58:48 +01:00
  • ba72662730 Allow more signed integer types in test function arguments Gilles Peskine 2022-12-04 15:57:49 +01:00
  • 6494d923f0 Support larger integer test arguments: C part Gilles Peskine 2022-12-04 15:32:54 +01:00
  • 615be63565 parse_function_arguments: stricter type parsing Gilles Peskine 2022-12-04 15:11:00 +01:00
  • 46476e04f4 Support (void) as an argument list of a test function Gilles Peskine 2022-12-04 14:29:06 +01:00
  • f153c5676b parse_function_arguments: extract per-argument function Gilles Peskine 2022-12-04 14:10:39 +01:00
  • 3a37f19e31 parse_function_arguments: make local_vars a list Gilles Peskine 2022-12-04 14:00:32 +01:00
  • 9ad7bd3060 Support different types in the parameter store Gilles Peskine 2022-12-04 13:10:55 +01:00
  • a299043d58 Simplify parsing of integers in .datax files Gilles Peskine 2022-12-04 00:28:56 +01:00
  • 242b05b7b6 Exercise string parsing in the test framework Gilles Peskine 2022-12-03 23:50:05 +01:00
  • 1780875e9b Simplify string escapes Gilles Peskine 2022-12-03 23:48:25 +01:00
  • ab56a6952b Factor get_function_info out of gen_from_test_data Gilles Peskine 2022-12-04 17:27:25 +01:00
  • f122aedb81 Add line number to a few error messages Gilles Peskine 2022-12-03 22:58:52 +01:00
  • 13e836a508 printf testing: exercise integer parsing in the test framework Gilles Peskine 2022-12-03 22:38:14 +01:00
  • af2fc50b76 Remove stdint.h substitute for older MSVC Gilles Peskine 2022-12-04 13:18:58 +01:00
  • 404923e15c Remove declarations of the nonstandard function strcasecmp Gilles Peskine 2022-12-04 13:34:50 +01:00
  • 534105044c Add guards for psa_is_dh_key_size_valid Przemek Stekiel 2023-04-28 13:18:43 +02:00
  • 14d6b1124b Merge pull request #7419 from yuhaoth/test/random-time-test-fail Gilles Peskine 2023-04-28 13:17:31 +02:00
  • 7351101704 Merge pull request #7502 from daverodgman/inline-clz Gilles Peskine 2023-04-28 13:06:47 +02:00
  • 53a9ac576d Merge pull request #7443 from mprse/psa_init_in_programs Gilles Peskine 2023-04-28 12:49:11 +02:00
  • a31c6eb509 Merge pull request #7488 from mprse/psa_init_in_programs_backport Gilles Peskine 2023-04-28 12:49:07 +02:00
  • d2e1dd098c Merge pull request #7499 from JonathanWitthoeft/development Gilles Peskine 2023-04-28 12:45:32 +02:00
  • 8388fddfdc test: use define for initializing ssl_message_queue struct Valerio Setti 2023-04-28 12:27:14 +02:00
  • 7c0f91be10 test: use define for initializing ssl_message_queue struct Valerio Setti 2023-04-28 12:20:34 +02:00
  • 6d85afa0cc Fix naming: FFDH key -> DH key and fix guard in psa_validate_key_type_and_size_for_key_generation Przemek Stekiel 2023-04-28 11:42:17 +02:00
  • 89ae9b6c3f test: fix USE_PSA_INIT position in test_suite_ssl Valerio Setti 2023-04-27 17:22:54 +02:00
  • 00a256f7b2 test: fix USE_PSA_INIT position in test_suite_ssl Valerio Setti 2023-04-27 17:22:27 +02:00
  • 0f2f996b92 change binary_string_parser for big-endian input Kusumit Ghoderao 2023-04-28 10:07:10 +05:30
  • 96074b1978 Merge pull request #7510 from daverodgman/fix-psa-aead-chacha20-test-dependency-2.28 Dave Rodgman 2023-04-27 19:14:06 +01:00
  • e93c90e881 Merge pull request #7433 from oberon-microsystems/fix-psa-aead-chacha20-test-dependency Dave Rodgman 2023-04-27 19:13:53 +01:00
  • b6ad6823f0 Update tests/suites/test_suite_psa_crypto.function Kusumit-Silabs 2023-04-27 22:42:19 +05:30
  • 771552d471 Fix PSA AEAD ChaCha20 test dependency. Stephan Koch 2023-04-11 17:54:31 +02:00
  • af0225e4de change binary_string_parser for big-endian input Kusumit Ghoderao 2023-04-27 20:06:58 +05:30
  • 914347bfa3 Don't explicitly inline mbedtls_mpi_core_clz Dave Rodgman 2023-04-27 14:20:30 +01:00
  • c6fdf1b683 Add tests with INPUT_INTEGER as key_type_arg Kusumit Ghoderao 2023-04-27 17:03:20 +05:30
  • 12e0b4b452 Use key_type_arg for determining input method Kusumit Ghoderao 2023-04-27 16:58:23 +05:30
  • a5376954ce Remove unrelated comment Kusumit Ghoderao 2023-04-27 16:57:24 +05:30
  • 4c0da51ee7 mbedtls_test_psa_exported_key_sanity_check: check for length equality for DH keys Przemek Stekiel 2023-04-27 13:04:20 +02:00
  • 2c9fc07cc4 Fix FFDH tests dependencies Przemek Stekiel 2023-04-27 12:41:32 +02:00
  • 2e7c33d530 Use import_with_data for testing FFDH invalid key length Przemek Stekiel 2023-04-27 12:29:45 +02:00
  • d1cf1bae5d Add function to validate dh key size Przemek Stekiel 2023-04-27 12:04:21 +02:00
  • d64e2493e1 test: update guards also for pkwrite and pkparse Valerio Setti 2023-04-24 13:53:21 +02:00
  • 57456b343e test: fix max value in test_mx32 Valerio Setti 2023-04-24 09:19:45 +02:00
  • 5346ef5601 test: minor fix for non-initialized variable valerio 2023-04-20 14:48:19 +02:00
  • 44570a5b66 test: fix USE_PSA_INIT/DONE for SSL test suite Valerio Setti 2023-04-19 15:10:45 +02:00
  • e7373a8a0f test: fix USE_PSA_INIT/DONE for x509 test suite Valerio Setti 2023-04-19 14:53:36 +02:00
  • 19c8196212 test: fix USE_PSA_INIT/DONE for PK test suite Valerio Setti 2023-04-19 14:25:52 +02:00
  • 5357a7a6d9 Use PSA_MAX_OF_THREE in PSA_EXPORT_KEY_PAIR_MAX_SIZE Przemek Stekiel 2023-04-27 11:22:36 +02:00
  • cf0156f3f3 mbedtls_psa_ffdh_generate_key: Fix random number generation Przemek Stekiel 2023-04-27 11:12:39 +02:00