Commit Graph

  • 6527bd6dfc Fix issue #2718 (condition always false) irwir 2019-09-21 18:51:25 +03:00
  • ad166d8db7 Also check curve in verify() Manuel Pégourié-Gonnard 2019-11-04 15:37:42 +01:00
  • 913534837a Hardcode numwords in vli_modInv Manuel Pégourié-Gonnard 2019-11-04 15:04:20 +01:00
  • 3e20adf533 Hardcode numwords in vli_modMult Manuel Pégourié-Gonnard 2019-11-04 15:00:43 +01:00
  • 10349e4912 Hardcode numwords in vli_mmod Manuel Pégourié-Gonnard 2019-11-04 14:57:53 +01:00
  • 1b0875d863 Hardcode numwords in vli_modSub Manuel Pégourié-Gonnard 2019-11-04 14:50:54 +01:00
  • 0779be7f31 Hardcode numwords in vli_modAdd Manuel Pégourié-Gonnard 2019-11-04 14:48:22 +01:00
  • 5e3baf2303 Hardcode numwords in vli_rshift1 Manuel Pégourié-Gonnard 2019-11-04 14:46:10 +01:00
  • 2cb3eea922 Hardcode numwords in vli_cmp Manuel Pégourié-Gonnard 2019-11-04 14:43:35 +01:00
  • 129b42ea2e Hardcode numwords in vli_sub Manuel Pégourié-Gonnard 2019-11-04 14:41:45 +01:00
  • 2eca3d367b Hardcode numwords in vli_equal Manuel Pégourié-Gonnard 2019-11-04 14:33:09 +01:00
  • a752191191 Hardcode numwords in vli_cpm_unsafe Manuel Pégourié-Gonnard 2019-11-04 14:31:35 +01:00
  • cbbb0f034b Hardcode numwords in vli_set() Manuel Pégourié-Gonnard 2019-11-04 13:02:04 +01:00
  • 2bf5a129cf Hardcode numwords in semi-internal vli_numBits() Manuel Pégourié-Gonnard 2019-11-04 12:56:59 +01:00
  • 94e48498ef Hardcode numwords in semi-internal vli_clear() Manuel Pégourié-Gonnard 2019-11-04 12:47:28 +01:00
  • f3899fc0ea hardcode numwords in semi-internal vli_isZero Manuel Pégourié-Gonnard 2019-11-04 12:44:43 +01:00
  • 02d9d21fd6 Hardcode numwords in internal vli_add Manuel Pégourié-Gonnard 2019-11-04 12:37:08 +01:00
  • 78a7e351fe Use macros for number of bits and words Manuel Pégourié-Gonnard 2019-11-04 12:31:06 +01:00
  • c3ec14c87f Harcode curve in semi-internal modMult function Manuel Pégourié-Gonnard 2019-11-04 12:12:00 +01:00
  • 3645ac93f5 Start hardcoding curve in internal functions Manuel Pégourié-Gonnard 2019-11-04 11:39:18 +01:00
  • 67ce647ff0 ct_lt_mpi_uint: cast the return value explicitely Janos Follath 2019-10-29 15:08:46 +00:00
  • f17c8006ae mbedtls_mpi_lt_mpi_ct: add tests for 32 bit limbs Janos Follath 2019-10-29 15:05:12 +00:00
  • c50e6d5edb mbedtls_mpi_lt_mpi_ct: simplify condition Janos Follath 2019-10-28 12:37:21 +00:00
  • 5e614cef15 Rename variable for better readability Janos Follath 2019-10-28 12:31:34 +00:00
  • bb5147f165 mbedtls_mpi_lt_mpi_ct: Improve documentation Janos Follath 2019-10-28 12:23:18 +00:00
  • 73ba9ec9a6 Make mbedtls_mpi_lt_mpi_ct more portable Janos Follath 2019-10-28 12:12:15 +00:00
  • 1f32b5bea4 Bignum: Document assumptions about the sign field Janos Follath 2019-10-28 12:07:52 +00:00
  • 0ac9557c86 Add more tests for mbedtls_mpi_lt_mpi_ct Janos Follath 2019-10-14 11:33:39 +01:00
  • b7e1b494ef mpi_lt_mpi_ct test: hardcode base 16 Janos Follath 2019-10-14 09:21:49 +01:00
  • 3f6f0e44eb Document ct_lt_mpi_uint Janos Follath 2019-10-14 09:09:32 +01:00
  • 4abc172360 mpi_lt_mpi_ct: make use of unsigned consistent Janos Follath 2019-10-14 09:01:15 +01:00
  • a0f732ba06 ct_lt_mpi_uint: make use of biL Janos Follath 2019-10-14 08:59:14 +01:00
  • 0e5532d6cf Change mbedtls_mpi_cmp_mpi_ct to check less than Janos Follath 2019-10-11 14:21:53 +01:00
  • 1fc97594da mbedtls_mpi_cmp_mpi_ct: remove multiplications Janos Follath 2019-10-11 10:43:40 +01:00
  • d80080c884 Remove excess vertical space Janos Follath 2019-10-11 10:22:37 +01:00
  • b2590790f2 Remove declaration after statement Janos Follath 2019-09-23 09:19:14 +01:00
  • a779b4601e Fix side channel vulnerability in ECDSA Janos Follath 2019-09-16 14:27:39 +01:00
  • 385d5b8682 Add tests to constant time mpi comparison Janos Follath 2019-09-11 16:07:14 +01:00
  • ee6abcedfd Add new, constant time mpi comparison Janos Follath 2019-09-05 14:47:19 +01:00
  • 27926d63b7 Remove less-safe mult function from public API Manuel Pégourié-Gonnard 2019-11-04 11:26:46 +01:00
  • ef238283d5 Add ECCPoint_mult_safer() function Manuel Pégourié-Gonnard 2019-11-04 11:19:30 +01:00
  • 22589f0a72 Merge pull request #305 from gilles-peskine-arm/ctr_drbg-grab_nonce_from_entropy-set_nonce_length Gilles Peskine 2019-11-04 10:39:42 +01:00
  • c78d86b499 Remove some internal functions that aren't needed Manuel Pégourié-Gonnard 2019-11-04 10:18:42 +01:00
  • d19a193738 Fix code review comments: 1. variable name accoriding to the Mbed TLS coding style; 2. add a comment explaining safety of the optimization; 3. safer T2 initialization and memory zeroing on the function exit; Alexander K 2019-11-01 18:20:42 +03:00
  • 6af7bf91f2 Add test cases for ASN.1 ENUMERATED tag Mykhailo Sopiha 2019-10-31 15:55:16 +02:00
  • 20180ca919 Add ASN.1 ENUMERATED tag support Mykhailo Sopiha 2019-10-29 15:58:10 +02:00
  • 08c674dfe3 Merge pull request #288 from gilles-peskine-arm/psa-ecdsa_longer_hash Gilles Peskine 2019-10-31 17:03:28 +01:00
  • 1a9bd94549 Disable MBEDTLS_MEMORY_BUFFER_ALLOC_C after config.pl full Gilles Peskine 2019-10-31 16:11:34 +01:00
  • cf5abd812a Enable more test cases without MBEDTLS_MEMORY_DEBUG Gilles Peskine 2019-10-31 15:07:45 +01:00
  • 02348c6fce More accurate test case description Gilles Peskine 2019-10-31 15:07:35 +01:00
  • 5033db293b Clarify that the "FATAL" message is expected Gilles Peskine 2019-10-31 15:07:08 +01:00
  • 86c4f81408 Improve documentation of internal function Manuel Pégourié-Gonnard 2019-10-31 13:02:03 +01:00
  • d5e503ec33 Rename wait_state_t to ecc_wait_state_t Manuel Pégourié-Gonnard 2019-10-31 12:53:44 +01:00
  • d467116e59 Make wait_state smaller Manuel Pégourié-Gonnard 2019-10-31 11:26:26 +01:00
  • 938f53f1fb Actually use randomized mult when relevant Manuel Pégourié-Gonnard 2019-10-29 11:23:43 +01:00
  • 14ab9c2879 Add random delays to multi-precision multiplication Manuel Pégourié-Gonnard 2019-10-22 09:49:53 +02:00
  • 6ee7a4e01c Validate peer's public key in ECDH Manuel Pégourié-Gonnard 2019-10-14 14:02:07 +02:00
  • 4a658a01c6 Add projective coordinates randomization in ECDSA Manuel Pégourié-Gonnard 2019-10-14 11:06:47 +02:00
  • 35d6d46169 Small performance improvement of mbedtls_mpi_div_mpi(): 1. don't use dynamic allocator for fixed size T2; 2. move T2 initialization out of the inner loop. Alexander K 2019-10-31 14:46:45 +03:00
  • 2e2fa5e352 Adress review comments Jarno Lamsa 2019-10-30 15:08:26 +02:00
  • 77c4fcc96e Use DER encoded keys with tinycrypt Jarno Lamsa 2019-10-30 14:44:05 +02:00
  • 6ba32cac5c Add authentication tests for baremetal config Jarno Lamsa 2019-10-29 15:16:40 +02:00
  • 6f54fe72f2 Add a bad version of server11 certificate Jarno Lamsa 2019-10-29 15:15:58 +02:00
  • d49d2b6d4f Changed mbedtls_platform_memset/cpy/cmp in selftest functions back to original methods Teppo Järvelin 2019-10-30 13:48:12 +02:00
  • 6f4e030166 Changed mbedtls_platform_memcpy to memcpy in places which don't handle critical data and under baremetal define Teppo Järvelin 2019-10-04 13:53:53 +03:00
  • b5c4671a80 Changed mbedtls_platform_memcpy back to memcpy for selftest and test functions Teppo Järvelin 2019-10-04 13:35:55 +03:00
  • 3137fb271a Added include platform_util.h to padlock.c to fix compile with all defines variants Teppo Järvelin 2019-10-04 13:29:55 +03:00
  • 91d7938761 Changed every memcpy to SCA equivalent mbedtls_platform_memcpy Teppo Järvelin 2019-10-02 09:09:31 +03:00
  • b514cd3626 Remove dependency to MBEDTLS_ERROR_C Jarno Lamsa 2019-10-28 14:37:51 +02:00
  • d342805134 Added Forced ECC ciphersuite with CCM tests Jarno Lamsa 2019-10-28 14:36:37 +02:00
  • c40184b44a Add test for small server packet Jarno Lamsa 2019-10-28 14:16:12 +02:00
  • 0ed68089ee Add test for small client packet Jarno Lamsa 2019-10-28 14:10:59 +02:00
  • c5118b7664 Add a new keyUsage test for p256 using DTLS Jarno Lamsa 2019-10-28 10:30:58 +02:00
  • ff434c2ef3 Add test for enforcing extended master secret Jarno Lamsa 2019-10-25 12:21:54 +03:00
  • 5b944b5793 define MBEDTLS_FS_IO Jarno Lamsa 2019-10-28 10:30:10 +02:00
  • 7544195a44 Remove echo FORCE SKIP Jarno Lamsa 2019-10-28 14:12:16 +02:00
  • ccde952df0 Merge pull request #259 from k-stachowiak/bounds-check-asn1-len Gilles Peskine 2019-10-29 17:47:47 +01:00
  • 7b6d8c27c8 Merge pull request #2909 from artokin/mbedtls_replay_check_fix_backport Gilles Peskine 2019-10-29 16:59:44 +01:00
  • aeecf04be3 Merge remote-tracking branch 'public/pr/2907' into baremetal Simon Butcher 2019-10-29 15:42:52 +00:00
  • 8b2c642994 Merge remote-tracking branch 'public/pr/2904' into baremetal Simon Butcher 2019-10-29 15:31:48 +00:00
  • f5a64048b7 Merge remote-tracking branch 'public/pr/2892' into baremetal Simon Butcher 2019-10-29 15:30:38 +00:00
  • 9d36fa16f8 Merge remote-tracking branch 'public/pr/2891' into baremetal Simon Butcher 2019-10-29 15:25:26 +00:00
  • a85b3e4dde Merge remote-tracking branch 'public/pr/2890' into baremetal Simon Butcher 2019-10-29 14:41:13 +00:00
  • 2f99f3d8a2 Merge remote-tracking branch 'public/pr/2850' into baremetal Simon Butcher 2019-10-29 14:24:33 +00:00
  • 7f8089b2ec Fix mbedtls_ssl_check_record usage with ext buf Arto Kinnunen 2019-10-29 11:13:33 +02:00
  • 8a8488c1cf Fix mbedtls_ssl_check_record usage with ext buf Arto Kinnunen 2019-10-29 11:13:33 +02:00
  • b02a233218 Note that mbedtls_ctr_drbg_seed() must not be called twice Gilles Peskine 2019-10-28 17:33:07 +01:00
  • 4c575c0270 Note that mbedtls_ctr_drbg_seed() must not be called twice Gilles Peskine 2019-10-28 17:33:07 +01:00
  • f4c0dbc628 Fix CTR_DRBG benchmark Gilles Peskine 2019-10-28 17:28:46 +01:00
  • eab4d701ca Fix CTR_DRBG benchmark Gilles Peskine 2019-10-28 17:28:46 +01:00
  • bd326f93d4 Note that mbedtls_ctr_drbg_seed() must not be called twice Gilles Peskine 2019-10-28 17:33:07 +01:00
  • f0ebbfb3fc Fix CTR_DRBG benchmark Gilles Peskine 2019-10-28 17:28:46 +01:00
  • 6c0da64094 Shorter version of mbedtls_ssl_send_fatal_handshake_failure irwir 2019-09-26 21:07:41 +03:00
  • 2ce22a5079 Stop transactions from being reentrant Jaeden Amero 2019-10-28 15:25:10 +00:00
  • 7800719551 Adjusted buf allocated from heap in ssl_client2 to be as small as possible Teppo Järvelin 2019-10-25 14:30:33 +03:00
  • 5cf41f80a4 Add ChangeLog entry Janos Follath 2019-10-25 08:53:01 +01:00
  • 1baed82774 Add ChangeLog entry Janos Follath 2019-10-25 08:53:01 +01:00
  • d65df1fa67 ECDSA: Fix side channel vulnerability Janos Follath 2019-10-17 10:18:51 +01:00
  • 614efc268e Moved allocation checks to correct place in ssl_server2.c Teppo Järvelin 2019-10-25 11:03:20 +03:00
  • 82debf8332 ECDSA: Fix side channel vulnerability Janos Follath 2019-10-17 10:18:51 +01:00