Jeffrey Walton
c9ef9420e7
Fix ECP leakage in Add() and Double() (GH #869 , PR #871 )
...
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.
2019-08-05 03:51:58 -04:00
Jeffrey Walton
df9fa62205
Use carryless multiplies for NIST b233 and k233 curves (GH #783 , PR #784 )
...
Use carryless multiplies for NIST b233 and k233 curves.
2019-01-16 00:02:04 -05:00
Jeffrey Walton
d62674b561
Add ed25519 (GH #764 , PR #767 )
...
Add ed25519
2018-12-24 17:17:32 -05:00
Jeffrey Walton
776a2195bd
Re-add static functions to eccrypto.cpp
...
I think another approach is better for CMake
2018-11-09 21:29:59 -05:00
Jeffrey Walton
9dfc010425
Fix compile with SunCC using CMake
...
This is likely another SunCC problem.
2018-11-09 21:00:37 -05:00
Jeffrey Walton
0cee6f01f0
Squash MS LNK4221 and libtool warnings
2018-07-06 01:22:38 -04:00
Jeffrey Walton
c27d3a9442
Make ASN.1 decoder m_values protected
2018-04-03 17:32:56 -04:00
Jeffrey Walton
9888d22d4b
Rename ECGDSA_ISO15946 -> ECGDSA ( #634 )
2018-04-02 23:58:23 -04:00
Ilja
38253a939f
Remove extra ; from eccrypto.cpp (PR #616 )
2018-03-31 13:08:57 -04:00
Jeffrey Walton
eaa8185e61
Clear GCC -Wreorder warnings
2018-01-02 10:34:06 -05:00
Jeffrey Walton
58726498f1
Clear clang-tidy warnings
2018-01-02 00:15:34 -05:00
Jeffrey Walton
679c9583a0
Update oids for SM2 (GH #542 )
...
Also see https://www.cryptopp.com/wiki/SM2 . The wiki page is documenting some of this stuff
2017-11-25 10:40:17 -05:00
Jeffrey Walton
3290711a82
Clear duplicate symbol warning from AIX linker
2017-09-18 21:05:26 -04:00
Jeffrey Walton
ff7f40cabe
Cleared C4505 under MSVC (Issue 412)
2017-05-23 23:00:58 -04:00
Jeffrey Walton
81b1a18063
Change file preamble to include "originally written by Wei Dai"
...
We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
2017-01-27 07:05:45 -05:00
Jeffrey Walton
08c0e26020
Add CRYPTOPP_ASSERT to Validate routines
...
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
2017-01-20 06:10:14 -05:00
Jeffrey Walton
cecf719fcd
Add German digital signature algorithm (ECGDSA) (Issue 113)
...
Also see ISO/IEC 15946 and http://www.teletrust.de/fileadmin/files/oid/ecgdsa_final.pdf
2016-12-13 16:20:41 -05:00
Jeffrey Walton
ba75834ae9
Removed VC++ 5.0 and 6.0 workarounds (Issue 342)
2016-12-03 05:05:56 -05:00
Jeffrey Walton
54d17c7361
Updated CRYPTOPP_ASSERT based on comments
...
Also see 399a1546de (commitcomment-19448453)
2016-10-17 22:00:31 -04:00
Jeffrey Walton
91ca6c117d
Change from NDEBUG to CRYPTOPP_DEBUG in source files to ensure all debug behavior pivots on CRYPTOPP_DEBUG, and not NDEBUG (Issue 277, CVE-2016-7420)
2016-09-16 14:51:48 -04:00
Jeffrey Walton
399a1546de
Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
...
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
2016-09-16 11:27:15 -04:00
Jeffrey Walton
894874fe75
Whitespace checkin
2016-09-10 04:57:48 -04:00
Jeffrey Walton
6ac1e46a1f
Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup)
2015-11-18 15:32:28 -05:00
Jeffrey Walton
48809d4e85
CRYPTOPP 5.6.3 RC6 checkin
2015-11-05 01:59:46 -05:00
Jeffrey Walton
1e103c0e5b
Completed cutover to unscoped auto_ptr (which will use Crypto++'s namespace version)
2015-08-03 19:11:23 -04:00
Jeffrey Walton
b7de164d62
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
2015-07-26 16:03:14 -04:00
Jeffrey Walton
07e8319478
Cleared "unused function" warning when using GCC with -Wall
2015-07-23 14:21:06 -04:00
Jeffrey Walton
c33a567654
Updated comment with TODO to make it easy to locate in the future via grep/find
2015-07-19 12:04:23 -04:00
Jeffrey Walton
21527f8f73
Cut-over to COUNTOF in source files
2015-07-03 17:16:05 -04:00
Jeffrey Walton
70bddb83ef
Cleared unused function warnings
2015-07-01 21:35:19 -04:00
weidai
a3a3ff3c86
fix for compiling with Clang from Marshall Clow
2011-01-07 01:30:24 +00:00
weidai
94776a744e
add Brainpool curves (Zooko)
2009-03-12 00:45:30 +00:00
weidai
fa25129ac9
port to Sun Studio 12's 64-bit C++ Compiler 5.9 Patch 124864-09 2008/12/16
2009-02-13 12:18:26 +00:00
weidai
8edb9adc83
update CheckMOVCondition() according to http://eprint.iacr.org/2007/343
2007-09-24 02:54:22 +00:00
weidai
43b41c1042
update version number, port to Sun C++ 5.8
2006-12-18 02:34:33 +00:00
weidai
4afd858ae4
port to Borland C++Builder 2006
2006-12-14 11:41:39 +00:00
weidai
09bb1aab64
port to GCC 4
2005-09-05 21:43:43 +00:00
weidai
86a46d7dc9
fix compile on MSVC .NET 2005
2005-07-13 02:18:50 +00:00
weidai
1db8ea5084
port to MSVC .NET 2005 beta 2
2005-07-12 04:23:32 +00:00
weidai
f78fccb3cc
port to GCC 3.4
2004-06-19 08:28:09 +00:00
weidai
f278895908
create DLL version, fix GetNextIV() bug in CTR and OFB modes
2003-07-04 00:17:37 +00:00
weidai
538de80a91
various changes for 5.1
2003-03-20 01:24:12 +00:00
weidai
a3b6ece7ab
Initial revision
2002-10-04 17:31:41 +00:00