summaryrefslogtreecommitdiff
path: root/ecp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix ECP::Double and brainpoolP256r1 (GH #878)Jeffrey Walton2019-08-261-0/+6
|
* Use Bash arithmetic operatorsJeffrey Walton2019-08-111-1/+1
|
* Whitespace check-inJeffrey Walton2019-08-101-11/+6
|
* Restore ECP ABI (GH #869)Jeffrey Walton2019-08-091-479/+493
| | | | Placing AdditionFunction as an inner class of ECP broke the ABI. We need to maintain the ABI so distros can patch Crypto++ 8.2.
* Update commentsJeffrey Walton2019-08-071-1/+2
|
* Avoid bitwise operation on boolean valuesJeffrey Walton2019-08-071-3/+2
|
* Avoid temporary ECP::Point in ECP Addition and DoubleJeffrey Walton2019-08-071-18/+36
| | | | This regains a lot of performance lost to the const-timeness (GH #869)
* Clear parenthesis warning with GCCJeffrey Walton2019-08-071-2/+2
|
* Remove unneeded T in ECP Add()Jeffrey Walton2019-08-061-13/+11
| | | | Switch to 'R' variable in AdditionFunction to avoid shadow warnings
* Avoid branches in Montgomery Add() (GH #869)Jeffrey Walton2019-08-061-12/+42
|
* Avoid branches in Montgomery Double() (GH #869)Jeffrey Walton2019-08-061-34/+39
|
* Fix ECP leakage in Add() and Double() (GH #869, PR #871)Jeffrey Walton2019-08-051-27/+430
| | | | | | | 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.
* Add init priorities for XLC compilersJeffrey Walton2018-12-041-1/+4
|
* Use ANONYMOUS_NAMESPACE_ENDJeffrey Walton2018-08-231-1/+1
|
* Avoid Singleton when possible (GH #708)Jeffrey Walton2018-08-221-6/+27
| | | | Also clear several sign conversion warnings
* 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 (Issue 277, CVE-2016-7420)Jeffrey Walton2016-09-161-2/+2
| | | | 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
* Cleared warning 'Warning: mr hides CryptoPP::ProjectiveDoubling::mr'Jeffrey Walton2016-06-081-3/+3
|
* Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 ↵Jeffrey Walton2015-11-181-0/+1
| | | | (Coverity rollup)
* CRYPTOPP 5.6.3 RC6 checkinJeffrey Walton2015-11-051-474/+475
|
* Cut-in CRYPTOPP_ASSERT in all remaining header and source filesJeffrey Walton2015-07-261-2/+2
|
* Added "trap.h" include for header and source files that assertJeffrey Walton2015-07-261-0/+1
|
* Cleared warnings on WindowSlider structJeffrey Walton2015-07-131-4/+4
|
* fix MSVC 2005 warningsweidai2006-03-131-4/+4
|
* fix ECP curve BER decodeweidai2005-09-021-1/+5
|
* port to MSVC .NET 2005 beta 2weidai2005-07-121-5/+5
|
* fix potential threading problem with initialization of static objectsweidai2003-07-291-2/+1
|
* create DLL version, fix GetNextIV() bug in CTR and OFB modesweidai2003-07-041-12/+5
|
* Initial revisionweidai2002-10-041-0/+477