Commit Graph

  • a7cd4830ee Implement config-checking header to context s11n Manuel Pégourié-Gonnard 2019-07-23 16:31:16 +02:00
  • 4c1d06e429 Provide serialisation API only if it's enabled Manuel Pégourié-Gonnard 2019-07-23 16:13:17 +02:00
  • 73a4636ca4 Adapt to hardcoded single version Manuel Pégourié-Gonnard 2019-07-23 15:16:19 +02:00
  • 2f3fa62a0a Fix compiler warning: comparing signed to unsigned Manuel Pégourié-Gonnard 2019-07-23 15:02:54 +02:00
  • bc847caa33 Actually reset the context on save as advertised Manuel Pégourié-Gonnard 2019-07-23 14:51:09 +02:00
  • ff22200fab Re-use buffer allocated by handshake_init() Manuel Pégourié-Gonnard 2019-07-23 14:43:30 +02:00
  • 0d83271a45 Enable serialisation tests in ssl-opt.sh Manuel Pégourié-Gonnard 2019-07-23 14:13:43 +02:00
  • 86dfa0cfc9 Change requirements for setting timer callback Manuel Pégourié-Gonnard 2019-07-15 12:23:22 +02:00
  • 138079d7d6 Add setting of forced fields when deserializing Manuel Pégourié-Gonnard 2019-07-15 11:53:51 +02:00
  • 16d1485a3d Add saved fields from top-level structure Manuel Pégourié-Gonnard 2019-07-15 11:23:03 +02:00
  • c981229b04 Fix memory leak in client/server2 Manuel Pégourié-Gonnard 2019-07-15 10:31:11 +02:00
  • 322f3c7377 Add transform (de)serialization Manuel Pégourié-Gonnard 2019-07-15 09:04:11 +02:00
  • 8175816200 Fix English in comments Manuel Pégourié-Gonnard 2019-07-12 10:50:19 +02:00
  • 3b23c7d2d2 Improve demo/testing code in client/server2 Manuel Pégourié-Gonnard 2019-07-12 10:41:55 +02:00
  • f1f3e529a5 Add session saving/loading Manuel Pégourié-Gonnard 2019-07-11 12:50:53 +02:00
  • d0dd10469b Add (stub) header writing and checking Manuel Pégourié-Gonnard 2019-07-11 10:58:10 +02:00
  • 5e534baaec Add usage checks in context_load() Manuel Pégourié-Gonnard 2019-07-11 09:56:30 +02:00
  • b6163ef175 Document internal serialisation format Manuel Pégourié-Gonnard 2019-07-10 14:58:45 +02:00
  • 569ed6ba56 Implement usage checks in context_save() Manuel Pégourié-Gonnard 2019-07-10 14:14:05 +02:00
  • a3024eef7b Save Hello random bytes for later use Manuel Pégourié-Gonnard 2019-07-09 12:54:17 +02:00
  • 1df83d4f5b SE keys: implement persistent storage Gilles Peskine 2019-07-23 16:13:14 +02:00
  • 0e8d495bd9 Add the lifetime to the key storage format Gilles Peskine 2019-07-23 14:46:52 +02:00
  • bfd322ff34 Use a key attribute structure in the internal storage interface Gilles Peskine 2019-07-23 11:58:03 +02:00
  • 274a2637f2 Make whitespace consistent Gilles Peskine 2019-07-23 11:27:38 +02:00
  • 6032673b39 Fix Doxygen reference Gilles Peskine 2019-07-22 20:10:36 +02:00
  • fc76265385 Do secure element key creation and destruction in a transaction Gilles Peskine 2019-07-22 19:30:34 +02:00
  • c8336cb8f9 Implement a transaction record storage for resilience Gilles Peskine 2019-07-22 19:26:12 +02:00
  • f28ce6e40e Fix typo in config.h Hanno Becker 2019-07-22 13:12:47 +01:00
  • 95d1b93c69 Don't reset timer during mbedtls_ssl_setup() Hanno Becker 2019-07-19 15:07:19 +01:00
  • ffb45b9ea5 Add test for hardcoded timer callbacks to all.sh Hanno Becker 2019-07-19 15:07:03 +01:00
  • af5d8abf26 Don't call memset on NULL pointer in NIST KW test suite Hanno Becker 2019-07-19 14:23:46 +01:00
  • 2838b7bfba Use smaller types in mbedtls_md_info_t Gilles Peskine 2019-07-19 16:03:39 +02:00
  • 84867cffdd Don't use dynamic pointer dispatch in md Gilles Peskine 2019-07-19 15:46:03 +02:00
  • 5bdae19778 Add ChangeLog entry for entropy_nv_seed test case fix Gilles Peskine 2019-07-19 17:26:55 +02:00
  • 756b3f2c25 entropy_nv_seed: cope with SHA-256 Gilles Peskine 2019-06-12 19:33:42 +02:00
  • 0450eecfae entropy_nv_seed: clean up properly Gilles Peskine 2019-06-12 19:31:29 +02:00
  • f9c94b0bd6 Add ChangeLog entry for undefined behavior fix in test_suite_nist_kw Gilles Peskine 2019-07-19 17:24:55 +02:00
  • fc41bd7f35 Don't call memset after calloc Gilles Peskine 2019-06-07 17:10:39 +02:00
  • 29c317b604 Add ChangeLog entry for entropy_nv_seed test case fix Gilles Peskine 2019-07-19 17:26:55 +02:00
  • d56ca658ab entropy_nv_seed: cope with SHA-256 Gilles Peskine 2019-06-12 19:33:42 +02:00
  • 923f7f9637 entropy_nv_seed: clean up properly Gilles Peskine 2019-06-12 19:31:29 +02:00
  • 981f81dc30 Add missing uses of mbedtls_ssl_get_minor() Hanno Becker 2019-07-19 16:10:49 +01:00
  • 9565a9732b Merge pull request #173 from Patater/prep-remove-crypto-from-tls Jaeden Amero 2019-07-19 16:11:46 +01:00
  • 66afcca5a9 entropy_nv_seed: cope with SHA-256 Gilles Peskine 2019-06-12 19:33:42 +02:00
  • e39b903de5 entropy_nv_seed: clean up properly Gilles Peskine 2019-06-12 19:31:29 +02:00
  • 9bb1f64706 Don't call memset after calloc Gilles Peskine 2019-06-07 17:10:39 +02:00
  • 614faa26ac Test PSA functions against PSA_SUCCESS, not 0 Gilles Peskine 2019-06-07 15:39:07 +02:00
  • 69c0ea26c7 Test suites: cope with psa_crypto_init failure Gilles Peskine 2019-06-07 15:38:59 +02:00
  • ce8bdf82a1 ECP restart: Don't calculate address of sub ctx if ctx is NULL Hanno Becker 2019-07-19 12:42:21 +01:00
  • 80bb77e16d ECP restart: Don't calculate address of sub ctx if ctx is NULL Hanno Becker 2019-07-19 14:44:36 +01:00
  • da2fb42f96 Adapt ChangeLog Hanno Becker 2019-07-19 12:52:08 +01:00
  • 2c5ef1143d ECP restart: Don't calculate address of sub ctx if ctx is NULL Hanno Becker 2019-07-19 12:42:21 +01:00
  • bf84d503b3 Adapt ChangeLog Hanno Becker 2019-07-19 12:52:08 +01:00
  • 59c92ed89b ECP restart: Don't calculate address of sub ctx if ctx is NULL Hanno Becker 2019-07-19 12:42:21 +01:00
  • 3b3b34f608 Replace some macros by functions Gilles Peskine 2019-07-18 21:08:27 +02:00
  • 3c3c42b1f4 Update query_config.c Hanno Becker 2019-06-24 13:44:58 +01:00
  • 49d65ba929 Re-roll main loop with SHA512_SMALLER Manuel Pégourié-Gonnard 2019-07-17 13:16:54 +02:00
  • 0270ed99bb Use tables and roll up some loops Manuel Pégourié-Gonnard 2019-07-17 13:01:56 +02:00
  • 7f0719598f Make SHA512_SMALLER turn a macro into a function Manuel Pégourié-Gonnard 2019-07-17 12:46:56 +02:00
  • 2306d15344 Declare new config.h option MBEDTLS_SHA512_SMALLER Manuel Pégourié-Gonnard 2019-07-17 12:36:53 +02:00
  • 100c057d0d Make SHA256_SMALLER option yield even smaller code Manuel Pégourié-Gonnard 2019-07-17 12:15:05 +02:00
  • 56595f4f7b Allow hardcoding single signature hash at compile-time Hanno Becker 2019-06-19 16:31:38 +01:00
  • f1bc9e1c69 Introduce helper functions to traverse signature hashes Hanno Becker 2019-06-19 16:23:21 +01:00
  • 0af717b520 Don't use mbedtls_ssL_set_calc_verify_md writing CertificateRequest Hanno Becker 2019-06-24 11:36:30 +01:00
  • 627fbee41a Don't offer SHA-1 in CertificateRequest message in TLS 1.2 Hanno Becker 2019-06-24 11:21:53 +01:00
  • 0a6417041e Remove redundant check in mbedtls_ssl_set_calc_verify_md() Hanno Becker 2019-06-24 11:19:58 +01:00
  • ae3f8511fd Merge remote-tracking branch 'origin/pr/615' into baremetal Simon Butcher 2019-07-15 19:24:44 +01:00
  • feb1cee36e Merge remote-tracking branch 'origin/pr/602' into baremetal Simon Butcher 2019-07-15 19:24:11 +01:00
  • 5f7436f757 Merge remote-tracking branch 'origin/pr/593' into baremetal Simon Butcher 2019-07-15 19:23:54 +01:00
  • f7dca86522 Allow building with the -Wunused flag Jaeden Amero 2019-06-27 17:31:33 +01:00
  • 3a0f08d911 Revert "cpp_dummy_build: Remove dependency on compat-1.3.h" Jaeden Amero 2019-06-27 17:32:49 +01:00
  • b8e4ae18cf Remove certs.h Jaeden Amero 2019-07-04 20:40:36 +01:00
  • 8045cfbaa8 Enable ALT implementations of ripemd160 Jaeden Amero 2019-07-04 20:26:59 +01:00
  • c49fbbf3eb Use mbedtls-based path for includes Jaeden Amero 2019-07-04 20:01:14 +01:00
  • f61bf9c13b Merge pull request #170 from gilles-peskine-arm/at-misra-2012 Gilles Peskine 2019-07-15 14:42:15 +02:00
  • c11c4dcf95 Favor stdint.h types in internal types Gilles Peskine 2019-07-15 11:06:38 +02:00
  • 7228da25f9 Favor stdint.h types in implementation-specific API Gilles Peskine 2019-07-15 11:06:15 +02:00
  • f82088a5f4 Favor stdint.h types in example code Gilles Peskine 2019-07-15 11:07:38 +02:00
  • d16bdac9b5 Use stdint.h types in multipart AEAD functions Andrew Thoelke 2019-05-15 12:34:01 +01:00
  • 163639b830 Apply same changes to implementation source code Andrew Thoelke 2019-05-15 12:33:23 +01:00
  • 47629d076e Use stdint.h types Andrew Thoelke 2019-03-22 11:24:17 +00:00
  • 991a05b411 Add support for all SHA modes in cert_write Ron Eldor 2019-02-12 15:05:53 +02:00
  • 5dc742c36a SE keys: smoke test import, export, destroy Gilles Peskine 2019-07-12 23:47:47 +02:00
  • 5d309672af SE keys: support import and export Gilles Peskine 2019-07-12 23:47:28 +02:00
  • 354f7671f4 SE keys: support destroy Gilles Peskine 2019-07-12 23:46:38 +02:00
  • cbaff467ef SE keys: allocate a slot before creating the key Gilles Peskine 2019-07-12 23:46:04 +02:00
  • 73167e128f SE keys: store the slot number in the memory slot Gilles Peskine 2019-07-12 23:44:37 +02:00
  • 8abe6a2d5c Driver table entries are now mutable Gilles Peskine 2019-07-12 23:40:35 +02:00
  • 5243a202c3 Driver context manipulation functions Gilles Peskine 2019-07-12 23:38:19 +02:00
  • 94cc42c28f Pass a writable pointer to the persistent data when needed Gilles Peskine 2019-07-12 23:34:20 +02:00
  • f2223c868d New driver method: allocate Gilles Peskine 2019-07-12 23:33:02 +02:00
  • 8597bc13e7 Pass the driver context to most driver methods Gilles Peskine 2019-07-12 23:28:46 +02:00
  • 7a86da1d42 Define a driver context structure type Gilles Peskine 2019-07-12 23:25:38 +02:00
  • f03143a4d1 Change driver key slot numbers to 64 bits Gilles Peskine 2019-07-12 23:18:29 +02:00
  • ca933c7e0c Merge pull request #2747 from Patater/cmake-and-stdarg-2.18 mbedtls-2.18.1 archive/mbedtls-2.18 archive/2.19 Jaeden Amero 2019-07-12 16:01:44 +01:00
  • 7ae3026d5d [Fixup] Minor changes addressing review feedback Hanno Becker 2019-07-10 09:40:52 +01:00
  • 7decea9ea9 Simplify supported EC extension writing code Hanno Becker 2019-06-19 12:59:24 +01:00
  • c1096e7514 Allow hardcoding single supported elliptic curve Hanno Becker 2019-06-19 12:30:41 +01:00
  • ee24f8cecb Remove unnecessary check for presence of supported EC list Hanno Becker 2019-06-19 12:33:04 +01:00
  • a4a9c696c1 Introduce helper macro for traversal of supported EC TLS IDs Hanno Becker 2019-06-18 16:55:47 +01:00