Commit Graph

  • 97871ef236 Some operations are not supported with Curve25519 Manuel Pégourié-Gonnard 2013-12-04 20:52:04 +01:00
  • 3d7053a2bb Add ecp_mod_p255(): Curve25519 about 4x faster now Manuel Pégourié-Gonnard 2013-12-04 20:51:13 +01:00
  • 357ff65a51 Details in ecp_mul_mxz() Manuel Pégourié-Gonnard 2013-12-04 18:39:17 +01:00
  • fe0af405f9 Adapt ecp_gen_keypair() to Curve25519 Manuel Pégourié-Gonnard 2013-12-04 18:14:55 +01:00
  • 9a4a5ac4de Fix bug in mpi_set_bit Manuel Pégourié-Gonnard 2013-12-04 18:05:29 +01:00
  • a0179b8c4a Change ecp_mul to handle Curve25519 too Manuel Pégourié-Gonnard 2013-12-04 11:49:20 +01:00
  • 312d2e8ea2 Adapt key checking functions for Curve25519 Manuel Pégourié-Gonnard 2013-12-04 11:08:01 +01:00
  • 661536677b Add Curve25519 to known groups Manuel Pégourié-Gonnard 2013-12-03 14:12:26 +01:00
  • 3afa07f05b Add coordinate randomization for Curve25519 Manuel Pégourié-Gonnard 2013-12-03 13:28:21 +01:00
  • d9ea82e7d9 Add basic arithmetic for Curve25519 Manuel Pégourié-Gonnard 2013-12-03 12:02:28 +01:00
  • 3c0b4ea97e Rename a few functions Manuel Pégourié-Gonnard 2013-12-02 19:44:41 +01:00
  • 498fd354c6 Added missing inline definition for other platforms to ecp_curves.c Paul Bakker 2013-12-02 22:17:24 +01:00
  • b14817d10a Updated ChangeLog for splitting off curves from ecp.c Paul Bakker 2013-12-02 22:03:23 +01:00
  • 76af736a47 Merged splitting off curves from ecp.c into ecp_curves.c Paul Bakker 2013-12-02 22:01:26 +01:00
  • a2ffccd09f Fixed memory leak in new x509parse test Paul Bakker 2013-12-02 21:56:37 +01:00
  • d5e0fbe1a3 Remove now useless function Manuel Pégourié-Gonnard 2013-12-02 17:20:39 +01:00
  • 3ee90003c9 Make internal functions static again + cosmetics Manuel Pégourié-Gonnard 2013-12-02 17:14:48 +01:00
  • 9854fe986b Convert curve constants to binary Manuel Pégourié-Gonnard 2013-12-02 16:30:43 +01:00
  • 32b04c1237 Split ecp.c Manuel Pégourié-Gonnard 2013-12-02 15:49:09 +01:00
  • 43863eeffc Declare internal variables static in ecp.c Manuel Pégourié-Gonnard 2013-12-01 16:51:27 +01:00
  • a0d758b917 Fix typo in test dependency Manuel Pégourié-Gonnard 2013-12-01 16:27:00 +01:00
  • d35e191434 Drop useless include in ecp.c Manuel Pégourié-Gonnard 2013-12-01 16:15:32 +01:00
  • c680405135 Removed test for empty data_files/dir0 Paul Bakker 2013-12-02 15:26:02 +01:00
  • 9dc53a9967 Merged client ciphersuite order preference option Paul Bakker 2013-12-02 14:55:28 +01:00
  • 014f143c2a Merged EC key generation support Paul Bakker 2013-12-02 14:54:01 +01:00
  • 4040d7e95c Merged more constant-time checking in RSA Paul Bakker 2013-12-02 14:52:57 +01:00
  • c3d0d07a7a Merged change from readdir_r() to readdir() + threading Paul Bakker 2013-12-02 14:50:49 +01:00
  • 1a9f2c7245 Add option to respect client ciphersuite order Manuel Pégourié-Gonnard 2013-11-30 18:30:06 +01:00
  • 011a8db2e7 Complete refactoring of ciphersuite choosing Manuel Pégourié-Gonnard 2013-11-30 18:11:07 +01:00
  • 3252560e68 Move some functions up Manuel Pégourié-Gonnard 2013-11-30 17:50:32 +01:00
  • 59b81d73b4 Refactor ciphersuite selection for version > 2 Manuel Pégourié-Gonnard 2013-11-30 17:46:04 +01:00
  • 6e16cdb37c Allow curve selection in gen_key Manuel Pégourié-Gonnard 2013-11-30 15:32:47 +01:00
  • fdda785248 Removed dependency on unistd.h for MSVC in apps Paul Bakker 2013-11-30 15:15:31 +01:00
  • 840ab20ea2 Explicit conversions to int from size_t for MSVC (64-bit) in apps Paul Bakker 2013-11-30 15:14:38 +01:00
  • c97f9f6465 Removed making commandline arguments case insensitive Paul Bakker 2013-11-30 15:13:02 +01:00
  • 0267e3dc9b Add ecp_curve_info_from_name() Manuel Pégourié-Gonnard 2013-11-30 15:10:14 +01:00
  • 49d738b50d Ignore file generated by gen_key Manuel Pégourié-Gonnard 2013-11-30 14:39:15 +01:00
  • 8c237710a0 Start adding EC support in gen_key Manuel Pégourié-Gonnard 2013-11-30 14:36:54 +01:00
  • 104ee1d1f6 Add ecp_genkey(), prettier wrapper Manuel Pégourié-Gonnard 2013-11-30 14:13:16 +01:00
  • 27290daf3b Check PKCS 1.5 padding in a more constant-time way Manuel Pégourié-Gonnard 2013-11-30 13:36:53 +01:00
  • ab44d7ecc3 Check OAEP padding in a more constant-time way Manuel Pégourié-Gonnard 2013-11-29 12:49:44 +01:00
  • a5cfc35db2 RSA-OAEP decrypt: reorganise code Manuel Pégourié-Gonnard 2013-11-28 15:57:52 +01:00
  • a8239a4490 Removed Windows auto-spawn client code Paul Bakker 2013-11-29 11:16:37 +01:00
  • e3339ce296 Document x509_crt_parse_path() threading behaviour Manuel Pégourié-Gonnard 2013-11-28 17:16:41 +01:00
  • 5ad68e42e5 Mutex x509_crt_parse_path() when pthreads is used Manuel Pégourié-Gonnard 2013-11-28 17:11:54 +01:00
  • 964bf9b92f Quit using readdir_r() Manuel Pégourié-Gonnard 2013-11-26 16:47:11 +01:00
  • fbae2a1f53 Add tests for x509_crt_parse_path() Manuel Pégourié-Gonnard 2013-11-26 16:43:39 +01:00
  • 76f03118c4 Only compile with -Wmissing-declarations and -Wmissing-prototypes in library, not tests and programs Paul Bakker 2013-11-28 17:20:04 +01:00
  • 3ddfa663a5 Renamed test_offset to prevent clash with one in ctr_drbg.c Paul Bakker 2013-11-26 17:45:20 +01:00
  • 7aa0375b78 Updated ChangeLog to reflect recent changes Paul Bakker 2013-11-26 17:37:31 +01:00
  • 88cd22646c Merged ciphersuite version improvements Paul Bakker 2013-11-26 15:22:19 +01:00
  • 0f2eacbd09 crypt_and_hash: check MAC earlier Manuel Pégourié-Gonnard 2013-11-25 17:55:17 +01:00
  • da1ff38715 Don't accept CertificateRequest with PSK suites Manuel Pégourié-Gonnard 2013-11-25 17:38:36 +01:00
  • dc953e8c41 Add missing defines/cases for RSA_PSK key exchange Manuel Pégourié-Gonnard 2013-11-25 17:27:39 +01:00
  • 3eaa8e7005 Clarify comments of mpi_mul_int() Manuel Pégourié-Gonnard 2013-11-25 16:16:33 +01:00
  • c57b654a3e Use t_uint rather than uintXX_t when appropriate Manuel Pégourié-Gonnard 2013-11-25 16:02:53 +01:00
  • 3209ce3692 Merged ECP improvements Paul Bakker 2013-11-26 15:19:17 +01:00
  • 20b9af7998 Fix min_version (TLS 1.0) for ECDHE-PSK suites Manuel Pégourié-Gonnard 2013-11-26 14:31:44 +01:00
  • c6f03faeaf Update compat.sh ciphersuite versions Manuel Pégourié-Gonnard 2013-11-26 14:29:13 +01:00
  • a5bdfcde53 Relax some SHA2 ciphersuite's version requirements Manuel Pégourié-Gonnard 2013-11-26 13:27:45 +01:00
  • 96c7a92b08 Change mpi_safe_cond_assign() for more const-ness Manuel Pégourié-Gonnard 2013-11-25 18:28:53 +01:00
  • e4c71f0e11 Merged Prime generation improvements Paul Bakker 2013-11-25 14:27:28 +01:00
  • 45f457d872 Reverted API change for mpi_is_prime() Paul Bakker 2013-11-25 14:26:52 +01:00
  • 7d2c0c4eda Added Check and CheckFull options to CMakeLists Paul Bakker 2013-11-25 13:30:11 +01:00
  • 8fc30b178c Various const fixes Paul Bakker 2013-11-25 13:29:43 +01:00
  • 5e1e61124a Insert warning about time in dh_genprime Manuel Pégourié-Gonnard 2013-11-22 21:16:10 +01:00
  • ddf7615d49 gen_prime: check small primes early (3x speed-up) Manuel Pégourié-Gonnard 2013-11-22 19:58:22 +01:00
  • 378fb4b70a Split mpi_is_prime() and make its first arg const Manuel Pégourié-Gonnard 2013-11-22 18:39:18 +01:00
  • 0160eacc82 gen_prime: ensure X = 2 mod 3 -> 2.5x speedup Manuel Pégourié-Gonnard 2013-11-22 17:54:59 +01:00
  • 711507a726 gen_prime: ensure X = 3 mod 4 always (2x speed-up) Manuel Pégourié-Gonnard 2013-11-22 17:35:28 +01:00
  • 3e3d2b818c Fix bug in mpi_safe_cond_assign() Manuel Pégourié-Gonnard 2013-11-21 21:12:26 +01:00
  • 918148193d Enhance ecp_selftest Manuel Pégourié-Gonnard 2013-11-21 20:23:55 +01:00
  • d728350cee Make memory access pattern constant Manuel Pégourié-Gonnard 2013-11-21 20:00:38 +01:00
  • aade42fd88 Change method for making M odd in ecp_mul() Manuel Pégourié-Gonnard 2013-11-21 19:19:54 +01:00
  • 36daa13d76 Misc details Manuel Pégourié-Gonnard 2013-11-21 18:33:36 +01:00
  • 469a209334 Rm subtraction from ecp_add_mixed() Manuel Pégourié-Gonnard 2013-11-21 18:20:43 +01:00
  • 01fca5e882 Do point inversion without leaking information Manuel Pégourié-Gonnard 2013-11-21 17:47:12 +01:00
  • 71c2c21601 Add mpi_safe_cond_assign() Manuel Pégourié-Gonnard 2013-11-21 16:56:39 +01:00
  • 44aab79022 Update bibliographic references Manuel Pégourié-Gonnard 2013-11-21 10:53:59 +01:00
  • 7f762319ad Use mpi_shrink() in ecp_precompute() Manuel Pégourié-Gonnard 2013-11-21 10:47:41 +01:00
  • 5868163e07 Add mpi_shrink() Manuel Pégourié-Gonnard 2013-11-21 10:39:37 +01:00
  • e282012219 Spare some memory Manuel Pégourié-Gonnard 2013-11-21 10:08:50 +01:00
  • edc1a1f482 Small code cleanups Manuel Pégourié-Gonnard 2013-11-21 09:50:00 +01:00
  • ff27b7c968 Tighten ecp_mul() validity checks Manuel Pégourié-Gonnard 2013-11-21 09:28:03 +01:00
  • 09ceaf49d0 Rm multiplication using NAF Manuel Pégourié-Gonnard 2013-11-20 23:06:14 +01:00
  • 04a0225388 Optimize w in the comb method Manuel Pégourié-Gonnard 2013-11-20 22:57:38 +01:00
  • 70c14372c6 Add coordinate randomization back Manuel Pégourié-Gonnard 2013-11-20 20:07:26 +01:00
  • c30200e4ce Fix bound issues Manuel Pégourié-Gonnard 2013-11-20 18:39:55 +01:00
  • 101a39f55f Improve comb method (less precomputed points) Manuel Pégourié-Gonnard 2013-11-20 14:47:19 +01:00
  • d1c1ba90ca First version of ecp_mul_comb() Manuel Pégourié-Gonnard 2013-11-16 15:50:12 +01:00
  • 17d99fc6f2 Fixed error.fmt to match active error.c code Paul Bakker 2013-11-21 17:34:13 +01:00
  • a9a028ebd0 SSL now gracefully handles missing RNG Paul Bakker 2013-11-21 17:31:06 +01:00
  • f2b4d86452 Fixed X.509 hostname comparison (with non-regular characters) Paul Bakker 2013-11-20 17:23:53 +01:00
  • c245834bc4 Link against ZLIB when zlib is used Steffan Karger 2013-11-14 10:34:46 +01:00
  • 28d81a009c Fix pkcs11.c to conform to PolarSSL 1.3 API. Steffan Karger 2013-11-13 16:57:58 +01:00
  • 44cf68f262 compat-1.2.h: Make inline functions static Steffan Karger 2013-11-12 10:34:55 +01:00
  • d1bac4ae55 Removed core file Paul Bakker 2013-11-19 17:37:08 +01:00
  • 41d768e7a4 Removed debug-only include dirs in VS2010 project file Paul Bakker 2013-11-19 15:41:46 +01:00
  • 08b028ff0f Prevent unlikely NULL dereference Paul Bakker 2013-11-19 10:42:37 +01:00
  • 911807284d bump_version script also handled SOVERSION for library/Makefile polarssl-1.3.2 Paul Bakker 2013-11-05 11:28:32 +01:00