Commit Graph

  • 478ab5443b Use more standard label name Dave Rodgman 2021-06-25 09:09:02 +01:00
  • 90d1cb83a0 Use more standard label name Dave Rodgman 2021-06-25 09:09:02 +01:00
  • 3698fa1043 Merge pull request #4673 from gilles-peskine-arm/psa_crypto_spm-from_platform_h Ronald Cron 2021-06-25 09:01:08 +02:00
  • 132e8c3cab Merge pull request #4715 from gilles-peskine-arm/psa_crypto_spm-from_platform_h-2.x Ronald Cron 2021-06-25 09:00:58 +02:00
  • f9f1bdfa7b Translate MBEDTLS_ERR_PK_BUFFER_TOO_SMALL for PSA Gilles Peskine 2021-06-23 20:32:27 +02:00
  • 908982b275 Fix the build with MBEDTLS_ECP_RESTARTABLE enabled Gilles Peskine 2021-06-22 11:06:08 +02:00
  • 16fe8fcef3 Fix unused variable warning Gilles Peskine 2021-06-22 09:45:56 +02:00
  • f00f152444 Add output size parameter to signature functions Gilles Peskine 2021-06-22 00:09:00 +02:00
  • ed68d7464d Move buffer size checks up to psa_crypto layer Paul Elliott 2021-06-24 20:37:32 +01:00
  • c2b7144da0 Simplify logic and factor out initial checks Paul Elliott 2021-06-24 18:17:52 +01:00
  • 7f429b747b Remove code duplication and fix formatting Paul Elliott 2021-06-24 18:08:54 +01:00
  • 87c909a8c5 Make auxiliary function static Paul Elliott 2021-06-24 18:07:39 +01:00
  • a8940ed876 Fix documented error codes Paul Elliott 2021-06-24 16:57:52 +01:00
  • ee334d1b75 Update Visual Studio project Gilles Peskine 2021-06-24 20:05:20 +02:00
  • 1fed4b8324 Merge pull request #4720 from gilles-peskine-arm/gcm-finish-outlen Gilles Peskine 2021-06-24 20:02:40 +02:00
  • 6f7105818c Improve psa_hash_update negative test Dave Rodgman 2021-06-24 18:14:52 +01:00
  • 54f7351d12 Improve psa_hash_update negative test Dave Rodgman 2021-06-24 18:14:52 +01:00
  • a0f4b595c5 Fixes for PBKDF2 documentation Andrew Thoelke 2021-06-24 16:47:14 +01:00
  • dad6f3b5a0 Remove confising comments gabor-mezei-arm 2021-06-24 17:24:18 +02:00
  • d73e1b0ccd Tidy up logic in psa_mac_sign_finish Dave Rodgman 2021-06-24 16:19:08 +01:00
  • db861797c1 Correct coding style issues Dave Rodgman 2021-06-24 16:17:43 +01:00
  • 22984de191 Remove comments gabor-mezei-arm 2021-06-24 17:20:22 +02:00
  • 8036bddb01 Tidy up logic in psa_mac_sign_finish Dave Rodgman 2021-06-24 16:19:08 +01:00
  • b5dd7c794d Correct coding style issues Dave Rodgman 2021-06-24 16:17:43 +01:00
  • 59e7aac4d1 Add ecp_check_pub tests for Curve 448 Janos Follath 2021-06-24 16:08:40 +01:00
  • c31505c351 Test struct initialization gabor-mezei-arm 2021-04-12 17:45:01 +02:00
  • f67d8af106 Fix struct initialization gabor-mezei-arm 2021-04-12 15:47:35 +02:00
  • c5c8d38d80 Add test for one-shot cipher driver wrapper functions gabor-mezei-arm 2021-04-12 15:46:09 +02:00
  • 8f8dc4c188 Add changelog entry gabor-mezei-arm 2021-04-08 15:31:36 +02:00
  • fa990b5ffe Dispatch cipher functions through the driver interface gabor-mezei-arm 2021-03-25 11:17:10 +01:00
  • d086e6e14f Add tests for one-shot hash cipher functions gabor-mezei-arm 2021-03-01 15:11:46 +01:00
  • 0ef3b85381 Implement one-shot cipher gabor-mezei-arm 2021-03-01 15:04:24 +01:00
  • 865a75e95b Reject low-order points on Curve448 early Janos Follath 2021-06-24 15:34:59 +01:00
  • 45af039682 Add DoS test case for ecp_check_pub Janos Follath 2021-06-24 15:10:15 +01:00
  • 8b8b781524 Use mbedtls_mpi_lset() more Janos Follath 2021-06-24 15:00:33 +01:00
  • 8c70e815dd Move mpi constant macros to bn_mul.h Janos Follath 2021-06-24 14:48:38 +01:00
  • e24f1a1a9d Fix missed driver wrapper tests Paul Elliott 2021-06-24 14:37:53 +01:00
  • 16906f9011 Add missing frees to generate nonce test Paul Elliott 2021-06-24 09:57:01 +01:00
  • 2f1d7f9deb Remove redundant ecp_check_pub() tests Janos Follath 2021-06-24 14:38:14 +01:00
  • 8081ced91d Prevent memory leak in ecp_check_pubkey_x25519() Janos Follath 2021-06-24 14:24:13 +01:00
  • cccb05def4 Call abort on error in psa_mac/cipher setup Dave Rodgman 2021-06-24 11:52:47 +01:00
  • 4e0a82e274 Update multipart hash operations to abort on error Dave Rodgman 2021-06-24 11:52:23 +01:00
  • 54648243cd Call abort on error in psa_mac/cipher setup Dave Rodgman 2021-06-24 11:49:45 +01:00
  • 685b6a742b Update multipart hash operations to abort on error Dave Rodgman 2021-06-24 11:49:14 +01:00
  • 5ae6f7547c Add negative tests for psa_abort in hash functions Dave Rodgman 2021-06-24 11:36:14 +01:00
  • ff8d52b398 Add negative tests for psa_abort in hash functions Dave Rodgman 2021-06-24 11:36:14 +01:00
  • 9774dcf592 Convert iterators to lists to remove late binding gabor-mezei-arm 2021-06-23 17:33:30 +02:00
  • 0bdb84e861 Add type annotations gabor-mezei-arm 2021-06-23 17:01:44 +02:00
  • 6439e85094 Do key usage policy extension when loading keys gabor-mezei-arm 2021-06-23 16:48:08 +02:00
  • 3e5f6cd58f Add test for extended key usage policies gabor-mezei-arm 2021-05-13 16:17:16 +02:00
  • 4d9009e74f Update tests for extended key usage policies gabor-mezei-arm 2021-05-13 12:05:01 +02:00
  • eeaeef4d58 Extend PSA_USAGE_SIGN/VERIFY_HASH key policies gabor-mezei-arm 2021-04-29 15:57:57 +02:00
  • fedd52ca19 Merge pull request #4707 from gilles-peskine-arm/require-matching-hashlen-rsa-implementation Gilles Peskine 2021-06-24 10:28:20 +02:00
  • 5a7be10419 Add output_length parameter to mbedtls_gcm_finish Gilles Peskine 2021-06-23 21:51:32 +02:00
  • c88b0a57da Update cipher and mac functions to abort on error Dave Rodgman 2021-06-23 11:38:39 +01:00
  • 34b147d1e6 Add negative tests for psa_abort in cipher and mac functions Dave Rodgman 2021-06-23 12:49:59 +01:00
  • 38e62aebc3 Update cipher and mac functions to abort on error Dave Rodgman 2021-06-23 11:38:39 +01:00
  • 647791da5b Add negative tests for psa_abort in cipher and mac functions Dave Rodgman 2021-06-23 12:49:59 +01:00
  • cf2d66e022 Remove permitting of 8 byte nonce with PolyChaCha Paul Elliott 2021-06-23 18:49:56 +01:00
  • f06b92d724 Merge pull request #4567 from mstarzyk-mobica/gcm_ad Gilles Peskine 2021-06-23 19:36:23 +02:00
  • 0187651647 Test all set lengths and set/generate nonce orders Paul Elliott 2021-06-23 18:13:04 +01:00
  • 3bd5dbacc1 Improve generate nonce test Paul Elliott 2021-06-23 17:14:40 +01:00
  • 95271f10c3 Call set_nonce direct rather than by wrapper Paul Elliott 2021-06-23 16:50:45 +01:00
  • 8fc45169f1 Fix compiler errors on many platforms. Paul Elliott 2021-06-23 16:06:01 +01:00
  • cb17fc34cf Merge pull request #4671 from mpg/x509-crt-profile-public Dave Rodgman 2021-06-23 16:06:12 +01:00
  • 33b58eeb36 Fix error in psa_crypto test suite Dave Rodgman 2021-06-23 12:48:52 +01:00
  • eaacabf98d Merge pull request #4392 from gilles-peskine-arm/psa-storage-format-test-lifetimes Ronald Cron 2021-06-23 15:22:24 +02:00
  • 4f7cc1bb63 Merge pull request #4713 from gilles-peskine-arm/psa-storage-format-test-lifetimes-3.0 Ronald Cron 2021-06-23 15:22:03 +02:00
  • 76dec15d54 Move the inclusion of crypto_spe.h to psa/crypto_platform.h Gilles Peskine 2021-06-15 18:36:05 +02:00
  • 99a3462785 In the SPM test build, fail if a symbol wasn't renamed Gilles Peskine 2021-06-17 11:37:52 +02:00
  • 984c19f553 Do a test build with MBEDTLS_PSA_CRYPTO_SPM Gilles Peskine 2021-06-15 18:37:38 +02:00
  • d28f293bb0 Import crypto_spe.h from TF-M Gilles Peskine 2021-06-15 18:18:07 +02:00
  • aa5938edb3 Merge pull request #4703 from gilles-peskine-arm/mpi_montmul-null-3.0 Janos Follath 2021-06-23 13:40:14 +01:00
  • 53d1cf8e2b Merge pull request #4644 from gilles-peskine-arm/mpi_montmul-null-2.x Janos Follath 2021-06-23 13:40:05 +01:00
  • 438ef16d45 Merge pull request #4654 from gilles-peskine-arm/mpi_montmul-null-2.16 Janos Follath 2021-06-23 13:39:57 +01:00
  • 939a54cda3 Fix typos and style issues. Mateusz Starzyk 2021-06-22 11:12:28 +02:00
  • 469c9f35f6 Add GCM tests for empty ciphertext/plaintext and empty AD. Mateusz Starzyk 2021-06-18 00:06:52 +02:00
  • 58d3a7ef97 Add GCM tests with vectors lengths non-dividable by 16. Mateusz Starzyk 2021-06-17 23:48:08 +02:00
  • 032a1ceaf3 Remove init_result check from custom gcm test functions. Mateusz Starzyk 2021-06-17 11:50:26 +02:00
  • f8a0d4d3bf Fix nested loops set_step in gcm test suite. Mateusz Starzyk 2021-06-17 11:40:52 +02:00
  • fc60622710 Add customized test functions for GCM update and update_ad. Mateusz Starzyk 2021-06-16 11:04:07 +02:00
  • 44a0ae920c Merge pull request #4710 from mstarzyk-mobica/ccm_taglen Ronald Cron 2021-06-23 14:20:26 +02:00
  • f9a046ecb5 Remove duplicate wipe call in psa_destroy_key Gilles Peskine 2021-06-07 23:27:54 +02:00
  • 91466c8d3f Hopefully clarify the example Gilles Peskine 2021-06-07 23:21:50 +02:00
  • 52bb83e6ad Fix mbedtls_svc_key_id_is_null when KEY_ID_ENCODES_OWNER Gilles Peskine 2021-05-28 12:59:49 +02:00
  • 095dadc5bc Fix error in psa_crypto test suite Dave Rodgman 2021-06-23 12:48:52 +01:00
  • 56949f6b63 Make immediate constants unsigned Gilles Peskine 2021-05-28 01:24:57 +02:00
  • 6687cd07f3 Refuse to destroy read-only keys Gilles Peskine 2021-04-21 22:32:05 +02:00
  • 576464873a Check that attempting to destroy a read-only key fails Gilles Peskine 2021-04-21 22:07:33 +02:00
  • eb7bdaa177 Add storage tests for lifetimes Gilles Peskine 2021-04-21 22:05:34 +02:00
  • 45a4391897 Collect lifetime constructors Gilles Peskine 2021-04-21 21:39:27 +02:00
  • fbb914f6e6 Add negative tests for psa_destroy_key Gilles Peskine 2021-04-21 20:09:23 +02:00
  • 87bc91c13b Forbid creating a read-only key Gilles Peskine 2021-04-21 21:23:40 +02:00
  • ad2ddfe874 Add negative tests for key creation with an invalid lifetime Gilles Peskine 2021-04-21 20:29:32 +02:00
  • 1e1eca3233 Add persistent key tests with a non-default persistence Gilles Peskine 2021-04-21 20:08:47 +02:00
  • f5f07c847a Fix mbedtls_psa_get_stats for keys with fancy lifetimes Gilles Peskine 2021-04-21 20:06:51 +02:00
  • d133bb2909 New macro PSA_KEY_LIFETIME_IS_READ_ONLY Gilles Peskine 2021-04-21 20:05:59 +02:00
  • 90dfc35643 More informative message on invalid classification flags Gilles Peskine 2021-04-21 20:04:24 +02:00
  • 607eb7e411 Add lifetime metadata tests Gilles Peskine 2021-04-21 20:03:53 +02:00
  • 06215eaa3e Avoid complaints about undeclared non-static symbols Manuel Pégourié-Gonnard 2021-06-23 12:53:18 +02:00