Commit Graph

  • e47b34bdc8 Removed further timing differences during SSL message decryption in ssl_decrypt_buf() Paul Bakker 2013-02-27 14:48:00 +01:00
  • 2ca8ad10a1 Made x509parse.c also work with missing hash header files Paul Bakker 2013-02-19 13:17:38 +01:00
  • 6deb37e03e Added comments to indicate dependency from PEM on AES, DES and MD5 Paul Bakker 2013-02-19 13:17:08 +01:00
  • fbb5cf9f59 Fixed typo in base64.h Paul Bakker 2013-02-14 11:56:58 +01:00
  • 86f04f400b Fixed comment Paul Bakker 2013-02-14 11:20:09 +01:00
  • c0463502ff Fixed memory leak in ssl_free() and ssl_reset() for active session Paul Bakker 2013-02-14 11:19:38 +01:00
  • f35b739dff Add a few check for context validity. Manuel Pégourié-Gonnard 2013-02-11 22:12:39 +01:00
  • 424fda5d7b Add ecdh_calc_secret() Manuel Pégourié-Gonnard 2013-02-11 22:05:42 +01:00
  • 5cceb41d2c Add ecdh_{make,read}_public() Manuel Pégourié-Gonnard 2013-02-11 21:51:45 +01:00
  • 854fbd7ba2 Add ecdh_read_params(). Manuel Pégourié-Gonnard 2013-02-11 20:28:55 +01:00
  • 13724765b2 Add ecdh_make_server_params (untested yet) Manuel Pégourié-Gonnard 2013-02-10 15:01:54 +01:00
  • 63533e44c2 Create ecdh_context structure Manuel Pégourié-Gonnard 2013-02-10 14:21:04 +01:00
  • 98f51815d6 Fix ecp_tls_read_point's signature Manuel Pégourié-Gonnard 2013-02-10 13:38:29 +01:00
  • 7c145c6418 Fix ecp_tls_read_group's signature Manuel Pégourié-Gonnard 2013-02-10 13:20:52 +01:00
  • 8c16f96259 Add a few tests for ecp_tls_read_point Manuel Pégourié-Gonnard 2013-02-10 13:00:20 +01:00
  • 46106a9d75 Add tests for (and fix bug in) ecp_tls_write_group Manuel Pégourié-Gonnard 2013-02-10 12:51:17 +01:00
  • 420f1eb675 Fix ecp_tls_write_point's signature Manuel Pégourié-Gonnard 2013-02-10 12:22:46 +01:00
  • b325887fad Add ecp_tls_write_group() Manuel Pégourié-Gonnard 2013-02-10 12:06:19 +01:00
  • 6282acaec2 Add basic tests for ecp_tls_*_point Manuel Pégourié-Gonnard 2013-02-10 11:15:11 +01:00
  • 7e86025f32 Rename ecp_*_binary to ecp_point_*_binary Manuel Pégourié-Gonnard 2013-02-10 10:58:48 +01:00
  • d84895dc22 Supress 'format' argument to ecp_read_binary. Manuel Pégourié-Gonnard 2013-02-10 10:53:04 +01:00
  • 0079405918 Add functions for read/write ECPoint records Manuel Pégourié-Gonnard 2013-02-09 19:00:07 +01:00
  • 1a96728964 Add function parsing a TLS ECParameters record Manuel Pégourié-Gonnard 2013-02-09 17:03:58 +01:00
  • c7a2da437e Updated for PolarSSL 1.2.5 polarssl-1.2.5 Paul Bakker 2013-02-02 19:23:57 +01:00
  • 40865c8e5d Added sending of alert messages in case of decryption failures as per RFC Paul Bakker 2013-01-31 17:13:13 +01:00
  • d66f070d49 Disable debug messages that can introduce a timing side channel. Paul Bakker 2013-01-31 16:57:45 +01:00
  • 4582999be6 Fixed timing difference resulting from badly formatted padding. Paul Bakker 2013-01-03 14:52:21 +01:00
  • 8fe40dcd7d Allow enabling of dummy error_strerror() to support some use-cases Paul Bakker 2013-02-02 12:43:08 +01:00
  • cf4a70c8ed Adjust names of ECDSA tests. Manuel Pégourié-Gonnard 2013-01-27 09:10:53 +01:00
  • 450a163c81 Fix valgrind warning in ECDSA test suite. Manuel Pégourié-Gonnard 2013-01-27 09:08:18 +01:00
  • 007b7177ef ECDH : add test vectors from RFC 5903. Manuel Pégourié-Gonnard 2013-01-27 08:56:21 +01:00
  • 602a8973d7 ECDSA : test vectors from RFC 4754 Manuel Pégourié-Gonnard 2013-01-27 08:10:28 +01:00
  • d1c7150bf5 Basic tests for ECDSA. Manuel Pégourié-Gonnard 2013-01-26 19:09:07 +01:00
  • 3aeb5a7192 Add ECDSA signature primitive. Manuel Pégourié-Gonnard 2013-01-26 18:05:50 +01:00
  • b309ab2936 Add ECDSA sign primitive Manuel Pégourié-Gonnard 2013-01-26 17:24:59 +01:00
  • 2aea1416f9 Add skeleton ecdsa.[ch] Manuel Pégourié-Gonnard 2013-01-26 16:33:44 +01:00
  • 61ce13b728 Basic tests for ECDH primitive Manuel Pégourié-Gonnard 2013-01-26 16:20:32 +01:00
  • 6545ca7bed Add ECDH primitives Manuel Pégourié-Gonnard 2013-01-26 16:05:22 +01:00
  • 0bad5c2381 Add skeleton ecdh.[ch] Manuel Pégourié-Gonnard 2013-01-26 15:30:46 +01:00
  • 45a035a9ac Add ecp_gen_keypair() Manuel Pégourié-Gonnard 2013-01-26 14:42:45 +01:00
  • 14c56a3378 Updated for PolarSSL 1.2.4 polarssl-1.2.4 Paul Bakker 2013-01-25 17:11:37 +01:00
  • 9d2bb658fc Added PolarSSL 1.1.5 ChangeLog from 1.1 branch Paul Bakker 2013-01-25 16:07:49 +01:00
  • 1961b709d8 Added ssl_handshake_step() to allow single stepping the handshake process Paul Bakker 2013-01-25 14:49:24 +01:00
  • 9c94cddeae Correctly handle CertificateRequest with empty DN list in <= TLS 1.1 Paul Bakker 2013-01-22 13:45:33 +01:00
  • f626e1dd28 Fixed comment on maximum tested size for POLARSSL_MPI_MAX_LIMBS Paul Bakker 2013-01-21 12:10:00 +01:00
  • cf4365f560 Updated error codes for ECP Paul Bakker 2013-01-16 17:00:43 +01:00
  • a95919b4c7 Added ECP files to Makefiles as well Paul Bakker 2013-01-16 17:00:05 +01:00
  • 5e402d88ea Added ecp_read_binary(). Manuel Pégourié-Gonnard 2012-11-24 16:19:42 +01:00
  • 37d218a8e3 Added support for writing points compressed Manuel Pégourié-Gonnard 2012-11-24 15:19:55 +01:00
  • e19feb5b46 Added ecp_write_binary(). Manuel Pégourié-Gonnard 2012-11-24 14:10:14 +01:00
  • 1c33057a63 Added ecp_check_pubkey(). Manuel Pégourié-Gonnard 2012-11-24 12:05:44 +01:00
  • c554e9acf1 Added test vectors from RFC 5903 Manuel Pégourié-Gonnard 2012-11-21 19:20:04 +01:00
  • 3680c82c5a Made choice of w safer and more optimal Manuel Pégourié-Gonnard 2012-11-21 18:49:45 +01:00
  • cdd44324e9 Added ecp_normalize_many() for faster precompute() Manuel Pégourié-Gonnard 2012-11-21 16:00:55 +01:00
  • b63f9e98f5 Made ecp_mul() faster and truly SPA resistant Manuel Pégourié-Gonnard 2012-11-21 13:00:58 +01:00
  • 7652a593d6 Added a precompute() function for fast mult Manuel Pégourié-Gonnard 2012-11-21 10:00:45 +01:00
  • 855560758c Added function preparing for faster multiplication Manuel Pégourié-Gonnard 2012-11-17 19:54:20 +01:00
  • b4a310b472 Added a selftest about SPA resistance Manuel Pégourié-Gonnard 2012-11-13 20:57:00 +01:00
  • 9674fd0d5e Added ecp_sub() as a variant of ecp_add() Manuel Pégourié-Gonnard 2012-11-19 21:23:27 +01:00
  • 1c2782cc7c Changed to jacobian coordinates everywhere Manuel Pégourié-Gonnard 2012-11-19 20:16:28 +01:00
  • 773ed546a2 Added a nbits member to ecp_group Manuel Pégourié-Gonnard 2012-11-18 13:19:07 +01:00
  • 4bdd47d2cb Multiplication by negative is now forbidden Manuel Pégourié-Gonnard 2012-11-11 14:33:59 +01:00
  • 8433824d5f Added fast mod_p192 Manuel Pégourié-Gonnard 2012-11-11 20:45:18 +01:00
  • 4712325777 Clarifications in comments; code cosmetics & style Manuel Pégourié-Gonnard 2012-11-10 14:44:24 +01:00
  • dada4da33f Moved domain paramaters to ecp.c Manuel Pégourié-Gonnard 2012-11-10 14:23:17 +01:00
  • 62aad14139 Added slot for fast modp, with mod_p521 Manuel Pégourié-Gonnard 2012-11-10 00:27:12 +01:00
  • 84d1aea1ac Now reducing mod p after every single operation Manuel Pégourié-Gonnard 2012-11-09 02:09:38 +01:00
  • e0c16922f9 Point multiplication using Jacobian coordinates Manuel Pégourié-Gonnard 2012-11-08 23:27:28 +01:00
  • 7e0adfbcc5 Replaced add_generic with add_mixed Manuel Pégourié-Gonnard 2012-11-08 23:21:46 +01:00
  • 989c32bc3e Replaced double_generic with double_jac Manuel Pégourié-Gonnard 2012-11-08 22:02:42 +01:00
  • 27b1ba8be0 Changed ecp_mul() to always add the same point Manuel Pégourié-Gonnard 2012-11-08 18:24:10 +01:00
  • d070f51224 Started introducting Jacobian coordinates Manuel Pégourié-Gonnard 2012-11-08 17:40:51 +01:00
  • 52a422f6a1 Added ecp-bench specialized benchmark Manuel Pégourié-Gonnard 2012-11-08 14:56:25 +01:00
  • e870c0a5d6 Added benchmark for DHM Manuel Pégourié-Gonnard 2012-11-08 11:31:48 +01:00
  • e739f0133b Added test vectors from RFC 5114 to test suite Manuel Pégourié-Gonnard 2012-11-07 12:24:22 +01:00
  • 4b8c3f2a1c Moved tests from selftest to tests/test_suite_ecp Manuel Pégourié-Gonnard 2012-11-07 21:39:45 +01:00
  • a5402fee04 Added ecp_use_known_dp() Manuel Pégourié-Gonnard 2012-11-07 20:24:05 +01:00
  • efaa31e9ae Implemented multiplication Manuel Pégourié-Gonnard 2012-11-06 21:34:35 +01:00
  • b4ab8a8137 Fixed memory leak due to typo Manuel Pégourié-Gonnard 2012-11-06 18:13:32 +01:00
  • de532ee73f Implemented generic doubling Manuel Pégourié-Gonnard 2012-11-06 16:10:47 +01:00
  • ab38b70816 Fixed add_generic Manuel Pégourié-Gonnard 2012-11-05 17:34:55 +01:00
  • b505c2796c Got first tests working, fixed ecp_copy() Manuel Pégourié-Gonnard 2012-11-05 17:27:54 +01:00
  • d0dc6317e1 Added a few test cases for addition Manuel Pégourié-Gonnard 2012-11-05 16:28:33 +01:00
  • 847395a8a9 Added ecp_XXX_read_string() Manuel Pégourié-Gonnard 2012-11-05 13:13:44 +01:00
  • 7cfcea349c Documented error codes properly Manuel Pégourié-Gonnard 2012-11-05 10:06:12 +01:00
  • ae180d0f20 Got started on ecp_add(): generic case done Manuel Pégourié-Gonnard 2012-11-02 18:14:40 +01:00
  • 883f313516 Added ecp_copy() (for points) Manuel Pégourié-Gonnard 2012-11-02 09:40:25 +01:00
  • 5179e463d5 Allowed point at infinity, supressed ecp_double() Manuel Pégourié-Gonnard 2012-10-31 19:37:54 +01:00
  • 1e8c8ecd95 Implemented ecp_{point,group}_free() Manuel Pégourié-Gonnard 2012-10-31 19:24:21 +01:00
  • d7e4570ad1 Copied ECP parameters from RFC 5114 Manuel Pégourié-Gonnard 2012-10-31 18:57:05 +01:00
  • 39d2adbbd0 Added (skeleton) ecp.[ch] Manuel Pégourié-Gonnard 2012-10-31 09:26:55 +01:00
  • 66a531b014 Bumped version numbers to 1.1.5 polarssl-1.1.5 Paul Bakker 2013-01-16 14:06:28 +01:00
  • 9406c12b1b Fixed typo Paul Bakker 2013-01-16 14:02:02 +01:00
  • cf45a56631 Fixes for MSVC6 (cherry picked from commit 7a2538ee38) Paul Bakker 2012-11-02 10:59:36 +00:00
  • 5f5593a30e Handle encryption with private key and decryption with public key as per RFC 2313 (cherry picked from commit e6ee41f932) Paul Bakker 2013-01-16 13:26:56 +01:00
  • c048493374 Memory leak when using RSA_PKCS_V21 operations fixed (cherry picked from commit 40628bad98 and from commit 02303e8be4) Paul Bakker 2013-01-03 10:50:31 +01:00
  • 5aef1e10f9 Fixed comments / typos (cherry picked from commit 096348fa79) Paul Bakker 2012-11-07 20:05:38 +00:00
  • 089b70d5a6 Fixed doxygen blocks (cherry picked from commit 77db6ce348) Paul Bakker 2012-11-07 19:57:39 +00:00
  • 144c3cc8ab Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1 (cherry picked from commit 9daf0d0651) Paul Bakker 2012-11-13 12:13:27 +00:00
  • 0ae1f40299 Allow R and A to point to same mpi in mpi_div_mpi (cherry picked from commit f02c5642d0 and from commit 50546921ac) Paul Bakker 2012-11-13 10:25:21 +00:00