Commit Graph

24 Commits

Author SHA1 Message Date
Jeffrey Walton
ab9461ec5e
Add additional ASN.1 self tests 2021-03-21 04:06:38 -04:00
Jeffrey Walton
a3224bf445
Update validat7.cpp 2021-03-20 15:37:57 -04:00
Jeffrey Walton
23b0bc97c9
Add additional x25519 self tests 2021-03-20 14:25:06 -04:00
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
2e6ccd7fb1
Fix authenticated key agreement domain parameter consistency test 2019-08-03 17:01:02 -04:00
Jeffrey Walton
7eeb954b23
Add AuthenticatedKeyAgreementValidateWithRoles free standing test function 2019-08-03 16:32:36 -04:00
Jeffrey Walton
0ca4c41a97
Add ed25519 SignStream and VerifyStream functions (GH #796, PR #797) 2019-02-10 23:08:14 -05:00
Jeffrey Walton
9255740285
Fix self test NEON compile with MSVC compiler (GH #776) 2019-01-03 21:00:22 -05:00
Jeffrey Walton
21cd665a1c
Fix TestEd25519 for Debug builds on PowerPC 2018-12-26 15:21:36 -05:00
Jeffrey Walton
82c0cb6b42
Whitespace check-in 2018-12-25 19:09:04 -05:00
Jeffrey Walton
f9a33173f5
Add additional self tests 2018-12-25 18:38:08 -05:00
Jeffrey Walton
2ccac19de1
Use variable length messages in TestEd25519 2018-12-25 18:16:14 -05:00
Jeffrey Walton
a749296504
Add additional self tests
And whitespace check-in
2018-12-25 10:08:49 -05:00
Jeffrey Walton
7226abd433
Add additional self tests
And whitespace check-in
2018-12-25 09:28:27 -05:00
Jeffrey Walton
c37d7c83b1
Fix compile with NO_OS_DEPENDENCE 2018-12-25 06:48:09 -05:00
Jeffrey Walton
d62674b561
Add ed25519 (GH #764, PR #767)
Add ed25519
2018-12-24 17:17:32 -05:00
Jeffrey Walton
235c615a10
Make TestCurve25519 available in Release builds 2018-12-14 12:15:58 -05:00
Jeffrey Walton
77923a291a
Add Langley's curve25519 (GH #761, PR# 762) 2018-12-11 16:17:56 -05:00
Jeffrey Walton
1c88fd6f59
Add search for test vectors and test data (GH #760) 2018-12-07 12:25:52 -05:00
Jeffrey Walton
bf37ccda6d
Fix initialization of 'pass' variable
Copy/paste error from https://github.com/weidai11/cryptopp/commit/d51f701e0638
2018-07-29 21:25:48 -04:00
Jeffrey Walton
25a32d3544
Fix HMQV self tests 2018-07-29 20:53:48 -04:00
Jeffrey Walton
0210e54310
Update comments 2018-07-29 20:34:29 -04:00
Jeffrey Walton
d51f701e06
Refactor validat5.cpp and validat6.cpp
Also see https://groups.google.com/forum/#\!topic/cryptopp-users/j_aQj6r-PoI
2018-07-29 20:30:19 -04:00
Jeffrey Walton
28fe1a6a4d
Split validat*.cpp source files
Also see https://groups.google.com/forum/#\!topic/cryptopp-users/j_aQj6r-PoI
2018-07-28 14:57:12 -04:00