summaryrefslogtreecommitdiff
path: root/eccrypto.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix ECP leakage in Add() and Double() (GH #869, PR #871)Jeffrey Walton2019-08-051-0/+10
| | | | | | | This check-in provides the fix for leaks in ECP's Add() and Double(). The fixes were taken from Joost Renes, Craig Costello, and Lejla Batina's [Complete addition formulas for prime order elliptic curves](https://eprint.iacr.org/2015/1060.pdf). The Pull Request includes two additional changes that were related to testing the primary fix. First, an `AuthenticatedKeyAgreementWithRolesValidate` interface was added. It allows us to test key agreement when roles are involved. Roles are "client", "server", "initiator", "recipient", etc. Second, `SetGlobalSeed` was added to `test.cpp` to help with reproducible results. We had code in two different places that set the seed value for the random number generator. But it was sloppy and doing a poor job since results could not be reproduced under some circumstances.
* Use carryless multiplies for NIST b233 and k233 curves (GH #783, PR #784)Jeffrey Walton2019-01-161-1/+6
| | | Use carryless multiplies for NIST b233 and k233 curves.
* Add ed25519 (GH #764, PR #767)Jeffrey Walton2018-12-241-2/+2
| | | Add ed25519
* Re-add static functions to eccrypto.cppJeffrey Walton2018-11-091-2/+2
| | | | I think another approach is better for CMake
* Fix compile with SunCC using CMakeJeffrey Walton2018-11-091-2/+2
| | | | This is likely another SunCC problem.
* Squash MS LNK4221 and libtool warningsJeffrey Walton2018-07-061-0/+5
|
* Make ASN.1 decoder m_values protectedJeffrey Walton2018-04-031-2/+2
|
* Rename ECGDSA_ISO15946 -> ECGDSA (#634)Jeffrey Walton2018-04-021-4/+4
|
* Remove extra ; from eccrypto.cpp (PR #616)Ilja2018-03-311-1/+1
|
* Clear GCC -Wreorder warningsJeffrey Walton2018-01-021-2/+2
|
* Clear clang-tidy warningsJeffrey Walton2018-01-021-4/+2
|
* Update oids for SM2 (GH #542)Jeffrey Walton2017-11-251-0/+17
| | | | Also see https://www.cryptopp.com/wiki/SM2. The wiki page is documenting some of this stuff
* Clear duplicate symbol warning from AIX linkerJeffrey Walton2017-09-181-2/+2
|
* Cleared C4505 under MSVC (Issue 412)Jeffrey Walton2017-05-231-1/+1
|
* Change file preamble to include "originally written by Wei Dai"Jeffrey Walton2017-01-271-1/+1
| | | | We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
* Add CRYPTOPP_ASSERT to Validate routinesJeffrey Walton2017-01-201-1/+15
| | | | | Since we switched to CRYPTOPP_ASSERT we don't have to worry about an accidental assert in production. We can now assert ValidateElement and ValidateGroup and let the code warn of potential problems during development. This came about because ECGDSA inadvertently used GetGroupOrder() rather than GetSubgroupOrder(). The assert alerted to the problem area without the need for debugging
* Add German digital signature algorithm (ECGDSA) (Issue 113)Jeffrey Walton2016-12-131-0/+71
| | | | Also see ISO/IEC 15946 and http://www.teletrust.de/fileadmin/files/oid/ecgdsa_final.pdf
* Removed VC++ 5.0 and 6.0 workarounds (Issue 342)Jeffrey Walton2016-12-031-6/+7
|
* Updated CRYPTOPP_ASSERT based on commentsJeffrey Walton2016-10-171-1/+1
| | | | Also see https://github.com/weidai11/cryptopp/commit/399a1546de71f41598c15edada28e7f0d616f541#commitcomment-19448453
* Change from NDEBUG to CRYPTOPP_DEBUG in source files to ensure all debug ↵Jeffrey Walton2016-09-161-1/+1
| | | | behavior pivots on CRYPTOPP_DEBUG, and not NDEBUG (Issue 277, CVE-2016-7420)
* Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)Jeffrey Walton2016-09-161-1/+1
| | | | trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
* Whitespace checkinJeffrey Walton2016-09-101-17/+17
|
* Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 ↵Jeffrey Walton2015-11-181-0/+2
| | | | (Coverity rollup)
* CRYPTOPP 5.6.3 RC6 checkinJeffrey Walton2015-11-051-707/+717
|
* Completed cutover to unscoped auto_ptr (which will use Crypto++'s namespace ↵Jeffrey Walton2015-08-031-1/+3
| | | | version)
* Cut-in CRYPTOPP_ASSERT in all remaining header and source filesJeffrey Walton2015-07-261-1/+1
|
* Cleared "unused function" warning when using GCC with -WallJeffrey Walton2015-07-231-4/+10
|
* Updated comment with TODO to make it easy to locate in the future via grep/findJeffrey Walton2015-07-191-2/+3
|
* Cut-over to COUNTOF in source filesJeffrey Walton2015-07-031-2/+2
|
* Cleared unused function warningsJeffrey Walton2015-07-011-1/+5
|
* fix for compiling with Clang from Marshall Clowweidai2011-01-071-3/+3
|
* add Brainpool curves (Zooko)weidai2009-03-121-0/+49
|
* port to Sun Studio 12's 64-bit C++ Compiler 5.9 Patch 124864-09 2008/12/16weidai2009-02-131-5/+0
|
* update CheckMOVCondition() according to http://eprint.iacr.org/2007/343weidai2007-09-241-3/+7
|
* update version number, port to Sun C++ 5.8weidai2006-12-181-4/+9
|
* port to Borland C++Builder 2006weidai2006-12-141-2/+3
|
* port to GCC 4weidai2005-09-051-1/+1
|
* fix compile on MSVC .NET 2005weidai2005-07-131-0/+2
|
* port to MSVC .NET 2005 beta 2weidai2005-07-121-8/+8
|
* port to GCC 3.4weidai2004-06-191-11/+11
|
* create DLL version, fix GetNextIV() bug in CTR and OFB modesweidai2003-07-041-11/+10
|
* various changes for 5.1weidai2003-03-201-2/+2
|
* Initial revisionweidai2002-10-041-0/+639