Commit Graph

  • 171826550f Merge pull request #709 from mpg/protect-base-blinding-dev-restricted Gilles Peskine 2020-07-29 10:58:53 +02:00
  • e05e57619b Remove use of C99 construct Manuel Pégourié-Gonnard 2020-07-29 10:04:36 +02:00
  • 253b0de23d Remove use of C99 construct Manuel Pégourié-Gonnard 2020-07-29 10:04:36 +02:00
  • a2371e53e4 Update after feedback from #3492 Steven Cooreman 2020-07-28 14:30:39 +02:00
  • 75b743666e Update after feedback on #3492 Steven Cooreman 2020-07-28 14:30:13 +02:00
  • 2f484bd979 Add missing const for consistency Manuel Pégourié-Gonnard 2020-07-28 11:57:25 +02:00
  • 2da9a54559 Fix typos in comments Manuel Pégourié-Gonnard 2020-07-28 11:56:05 +02:00
  • 2810110bba Fix typos in comments Manuel Pégourié-Gonnard 2020-07-28 11:54:35 +02:00
  • 2b223fd539 Add comment on memsan + constant-flow testing Manuel Pégourié-Gonnard 2020-07-22 11:09:28 +02:00
  • 0cd0c731fd Check errors from the MD layer Manuel Pégourié-Gonnard 2020-07-28 11:49:42 +02:00
  • c9ef5a2b76 Remove unnecessary cast Manuel Pégourié-Gonnard 2020-07-28 11:45:02 +02:00
  • ec956b1861 Improve some comments and internal documentation Manuel Pégourié-Gonnard 2020-07-28 11:42:31 +02:00
  • 41df0f2bca Factor repeated condition to its own macro Manuel Pégourié-Gonnard 2020-07-28 11:35:39 +02:00
  • 4508c67c42 Implement cf_hmac() actually with constant flow Manuel Pégourié-Gonnard 2020-07-28 11:25:34 +02:00
  • 961b4dd407 Start testing cf_hmac() for constant flow Manuel Pégourié-Gonnard 2020-07-28 11:02:57 +02:00
  • 40597cef01 Add MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN Manuel Pégourié-Gonnard 2020-07-28 10:53:06 +02:00
  • d11971875a Use existing implementation of cf_hmac() Manuel Pégourié-Gonnard 2020-07-28 10:43:03 +02:00
  • 3ba2bcaf0d Add dummy constant-flow HMAC function with tests Manuel Pégourié-Gonnard 2020-07-28 10:19:45 +02:00
  • 8ebb88d1e0 Factor repeated preprocessor condition to a macro Manuel Pégourié-Gonnard 2020-07-28 09:55:33 +02:00
  • 09ac297f7f Add missing const for consistency Manuel Pégourié-Gonnard 2020-07-28 11:57:25 +02:00
  • 94fd8dc066 Fix typos in comments Manuel Pégourié-Gonnard 2020-07-28 11:56:05 +02:00
  • 2b2f956f22 Fix typos in comments Manuel Pégourié-Gonnard 2020-07-28 11:54:35 +02:00
  • 2b80249c04 Add comment on memsan + constant-flow testing Manuel Pégourié-Gonnard 2020-07-22 11:09:28 +02:00
  • 5bb6f3c3db Check errors from the MD layer Manuel Pégourié-Gonnard 2020-07-28 11:49:42 +02:00
  • a6c1317685 Remove unnecessary cast Manuel Pégourié-Gonnard 2020-07-28 11:45:02 +02:00
  • 74503bb5fc Improve some comments and internal documentation Manuel Pégourié-Gonnard 2020-07-28 11:42:31 +02:00
  • 1e94128f30 Factor repeated condition to its own macro Manuel Pégourié-Gonnard 2020-07-28 11:35:39 +02:00
  • de02b580c8 Implement cf_hmac() actually with constant flow Manuel Pégourié-Gonnard 2020-07-28 11:25:34 +02:00
  • 0dab12ec2c Start testing cf_hmac() for constant flow Manuel Pégourié-Gonnard 2020-07-28 11:02:57 +02:00
  • a237722118 Add MBEDTLS_TEST_CONSTANT_FLOW_MEMSAN Manuel Pégourié-Gonnard 2020-07-28 10:53:06 +02:00
  • 368fc65f80 Use existing implementation of cf_hmac() Manuel Pégourié-Gonnard 2020-07-28 10:43:03 +02:00
  • fde750550d Add dummy constant-flow HMAC function with tests Manuel Pégourié-Gonnard 2020-07-28 10:19:45 +02:00
  • a60d0f2acb Factor repeated preprocessor condition to a macro Manuel Pégourié-Gonnard 2020-07-28 09:55:33 +02:00
  • 882148ed5c Remove obsolete buildbot reference in compat.sh Manuel Pégourié-Gonnard 2020-07-27 09:46:53 +02:00
  • a3b994fa4d Fix misuse of printf in shell script Manuel Pégourié-Gonnard 2020-07-27 09:45:32 +02:00
  • f009542747 Add missing const for consistency Manuel Pégourié-Gonnard 2020-07-24 11:13:01 +02:00
  • e747843903 Fix a whitespace issue Manuel Pégourié-Gonnard 2020-07-24 11:09:22 +02:00
  • 390fb4ff34 Fix typos in comments Manuel Pégourié-Gonnard 2020-07-24 11:08:40 +02:00
  • e0765f35d5 Use int ret = MBEDTLS_ERROR_CORRUPTION_DETECTED; idiom Manuel Pégourié-Gonnard 2020-07-22 12:22:51 +02:00
  • 0b2112d304 Add comment on memsan + constant-flow testing Manuel Pégourié-Gonnard 2020-07-22 11:09:28 +02:00
  • fd3c7b1eda test only archive/baremetal-test Shelly Liberman 2020-07-26 18:30:55 +03:00
  • 19fd574b3a Disconnect knowing about a PSA key type from knowing the mbedTLS API Steven Cooreman 2020-07-24 23:31:01 +02:00
  • 560c28a1ac Unify key handling logic Steven Cooreman 2020-07-24 23:20:24 +02:00
  • acda8346bf Remove ECP internal representation from key slot Steven Cooreman 2020-07-24 23:09:52 +02:00
  • a01795d609 Remove RSA internal representation from key slot Steven Cooreman 2020-07-24 22:48:15 +02:00
  • 81be2fa0b2 Pull apart slot memory allocation from key validation. Steven Cooreman 2020-07-24 22:04:59 +02:00
  • 71fd80d279 Re-define members of psa_key_slot_t Steven Cooreman 2020-07-07 21:12:27 +02:00
  • e18ffc88cd Do upgrade all packages archive/dev/gilles-peskine-arm/travis-20200724 Gilles Peskine 2020-07-24 20:21:24 +02:00
  • 11964df723 Remove junk line from accidental paste Gilles Peskine 2020-07-24 20:20:36 +02:00
  • 798b2920b4 What if we update all the things? Gilles Peskine 2020-07-24 19:48:30 +02:00
  • 221dd63864 Try upgrading libgnutls30 Gilles Peskine 2020-07-24 19:21:53 +02:00
  • 1394fe2179 The failures are only with (D)TLS 1.2 Gilles Peskine 2020-07-24 19:13:16 +02:00
  • 2008d1711d Get info about gnutls on travis Gilles Peskine 2020-07-24 18:44:36 +02:00
  • b2b1d8e762 Clarify some comments Manuel Pégourié-Gonnard 2020-07-16 09:48:54 +02:00
  • ab601d6a1c Fix memory leak on error path Manuel Pégourié-Gonnard 2020-07-16 09:23:30 +02:00
  • ff913e0ba6 Add ChangeLog entry for base blinding protection Manuel Pégourié-Gonnard 2020-06-26 11:33:41 +02:00
  • 406c7aedc4 RSA: blind call to mpi_inv_mod() on secret value Manuel Pégourié-Gonnard 2020-06-26 11:19:12 +02:00
  • 6ab924de1d RSA: remove redundant GCD call in prepare_blinding() Manuel Pégourié-Gonnard 2020-06-26 11:03:19 +02:00
  • a35e98a060 DHM: blind call to mpi_inv_mod() on secret value Manuel Pégourié-Gonnard 2020-06-25 12:47:22 +02:00
  • f0f43c51c4 DHM: make drawing of blinding value a function Manuel Pégourié-Gonnard 2020-06-25 12:34:58 +02:00
  • 87a602dd67 Clarify some comments Manuel Pégourié-Gonnard 2020-07-16 09:48:54 +02:00
  • cadcf4cec6 Fix memory leak on error path Manuel Pégourié-Gonnard 2020-07-16 09:23:30 +02:00
  • 8be9d3b833 Add ChangeLog entry for base blinding protection Manuel Pégourié-Gonnard 2020-06-26 11:33:41 +02:00
  • 49e94e3889 RSA: blind call to mpi_inv_mod() on secret value Manuel Pégourié-Gonnard 2020-06-26 11:19:12 +02:00
  • 86ad5be18a RSA: remove redundant GCD call in prepare_blinding() Manuel Pégourié-Gonnard 2020-06-26 11:03:19 +02:00
  • d96edbc600 DHM: blind call to mpi_inv_mod() on secret value Manuel Pégourié-Gonnard 2020-06-25 12:47:22 +02:00
  • 41ee83972b DHM: make drawing of blinding value a function Manuel Pégourié-Gonnard 2020-06-25 12:34:58 +02:00
  • 8779e9a70b Fix added proxy command when IPv6 is used Manuel Pégourié-Gonnard 2020-07-16 10:19:32 +02:00
  • 7d6326dbf9 Fix uncaught error if fix_negative fails Gilles Peskine 2020-07-23 01:14:34 +02:00
  • 84697ca359 Fix memory leak in mbedtls_mpi_sub_abs Gilles Peskine 2020-07-23 01:16:46 +02:00
  • 2845fcc8ab Always test in-place addition and subtraction Gilles Peskine 2020-07-23 01:18:11 +02:00
  • ea6a740923 Merge pull request #717 from mpg/non-etm-cbc-negative-testing Manuel Pégourié-Gonnard 2020-07-22 13:33:49 +02:00
  • ee7e85f5b9 Merge pull request #2019 from gilles-peskine-arm/build_with_only_montgomery_curves-conditional_mul_add Manuel Pégourié-Gonnard 2020-07-22 13:13:36 +02:00
  • e55653f085 Improve comments about padlen convention Manuel Pégourié-Gonnard 2020-07-22 11:42:57 +02:00
  • 44c9fdde6e Check errors from the MD layer Manuel Pégourié-Gonnard 2020-07-22 10:48:47 +02:00
  • 9713e13e68 Remove unnecessary cast Manuel Pégourié-Gonnard 2020-07-22 10:40:31 +02:00
  • baccf803ad Improve some comments and internal documentation Manuel Pégourié-Gonnard 2020-07-22 10:37:27 +02:00
  • c3219006ff Fix suboptimal use of ASSER_ALLOC() Manuel Pégourié-Gonnard 2020-07-22 10:32:52 +02:00
  • ca8287cbaf Use test_set_step() in loop in cf_hmac test Manuel Pégourié-Gonnard 2020-07-22 10:29:39 +02:00
  • ed0e86428d Factor repeated condition to its own macro Manuel Pégourié-Gonnard 2020-07-21 11:20:30 +02:00
  • 7a8b1e6b71 Implement cf_hmac() actually with constant flow Manuel Pégourié-Gonnard 2020-07-15 11:52:14 +02:00
  • 9670a59230 Start testing cf_hmac() for constant flow Manuel Pégourié-Gonnard 2020-07-10 10:21:46 +02:00
  • 6d9c8d7b2d Minor documentation improvements Gilles Peskine 2020-07-22 01:26:25 +02:00
  • a3de08d0b5 Reorder curve enumeration like mbedtls_ecp_group_id Gilles Peskine 2020-07-22 01:23:37 +02:00
  • d3beca9e38 Test Everest with only Curve25519 enabled Gilles Peskine 2020-07-03 00:15:37 +02:00
  • 0478c2f77e Add ChangeLog entry for single-curve build fixes Gilles Peskine 2018-09-17 21:21:28 +02:00
  • 5997005611 Fix unused variables in Montgomery-only configuration Gilles Peskine 2019-02-28 13:12:06 +01:00
  • a2611604d4 curves.pl: test with each elliptic curve enabled Gilles Peskine 2018-09-17 18:40:33 +02:00
  • a088c81fcb Adjust ECP self-test to support Curve448 Gilles Peskine 2018-09-17 18:31:15 +02:00
  • 24666795e4 ECP self test: add self-test step for Montgomery curves Gilles Peskine 2018-09-17 18:29:49 +02:00
  • c95696fec4 Factor common code in mbedtls_ecp_self_test Gilles Peskine 2018-09-17 15:59:01 +02:00
  • d9767a5799 Tweak ECP self-test to work with secp192k1 Gilles Peskine 2018-09-14 19:29:47 +02:00
  • 7ab66a6bf1 Add missing dependencies for ECDH_xxx key exchanges Gilles Peskine 2018-09-14 17:47:41 +02:00
  • 963a207678 Document what needs to be done when adding a new curve Gilles Peskine 2018-09-14 18:31:30 +02:00
  • aa9493a411 Add guards around code that is specific to dynamically-loaded groups Gilles Peskine 2018-09-12 14:44:03 +02:00
  • e8c04fed51 Replace ECP_xxx by MBEDTLS_ECP__xxx_ENABLED Gilles Peskine 2018-09-14 17:44:21 +02:00
  • 9b99a8942f mbedtls_ecp_muladd is only for short Weierstrass curves Gilles Peskine 2018-09-14 18:32:19 +02:00
  • 799e57612a ECDSA requires a short Weierstrass curve Gilles Peskine 2018-09-14 17:34:00 +02:00
  • d00f99772f Merge branch 'development' into development-restricted Manuel Pégourié-Gonnard 2020-07-21 13:30:40 +02:00
  • b51f04466f Fix misleading comment in test function Manuel Pégourié-Gonnard 2020-07-21 10:40:25 +02:00