Jeffrey Walton
e5ab7919f9
Remove unneeded T in ECP Add()
...
Switch to 'R' variable in AdditionFunction to avoid shadow warnings
2019-08-06 03:28:53 -04:00
Jeffrey Walton
0ded32192e
Avoid branches in Montgomery Add() (GH #869 )
2019-08-06 03:14:03 -04:00
Jeffrey Walton
5ae70e22b9
Avoid branches in Montgomery Double() (GH #869 )
2019-08-06 01:23:37 -04:00
Jeffrey Walton
df18c5b745
Add Debug and Release linker flags
2019-08-06 00:20:59 -04:00
Jeffrey Walton
41864fd49e
Use local labels for RDRAND and RDSEED code (GH #872 )
...
This did not fix the issue, but it is something on the TODO list.
2019-08-06 00:18:56 -04:00
Jeffrey Walton
a01711e347
Fix CopyToRoot target with spaces in path
2019-08-05 13:27:54 -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
b3eb4c6a69
Fix AuthenticatedKeyAgreementWithRolesValidate messages
2019-08-03 23:59:25 -04:00
Jeffrey Walton
5aac8506bd
Use recipient rather than responder in authenticated key agreement
...
The recipient may not respond (though they do in the case of these key agreement schemes)
2019-08-03 23:52:50 -04:00
Jeffrey Walton
0b42a18cde
Update documentation
2019-08-03 23:25:15 -04:00
Jeffrey Walton
4e6dd922f7
Update documentation
2019-08-03 22:33:46 -04:00
Jeffrey Walton
c3e0d123b2
Update documentation
2019-08-03 22:08:07 -04:00
Jeffrey Walton
37c0fb7ba8
Update documentation
2019-08-03 22:05:01 -04:00
Jeffrey Walton
057c2b434b
Update documentation
2019-08-03 21:58:26 -04:00
Jeffrey Walton
47a58050c6
Update documentation
2019-08-03 19:22:17 -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
3c5cb828b1
Spelling
2019-08-03 15:38:39 -04:00
Jeffrey Walton
84c4ae429f
Fix const-ness in HMQV and FHMQV
2019-08-03 03:24:26 -04:00
Jeffrey Walton
176cab0dc5
Update comments
...
Reference the bug report in DL_SignerBase::SignAndRestart for future readers
2019-07-29 10:36:29 -04:00
Ján Jančár
f68f00f560
Fix ECDSA scalar multiplication leakage of bit-length. (GH #870 )
...
This fixes the timing leakage of bit-length of nonces in ECDSA by essentially
fixing the bit-length, by using a nonce equivalent modulo the subgroup order.
2019-07-29 10:12:14 -04:00
Jeffrey Walton
739e5799e3
Whitespace check-in
2019-07-27 15:56:15 -04:00
Jeffrey Walton
e4c402ace9
Clear truncation warning in rng.cpp (PR #867 )
2019-07-25 04:52:24 -04:00
Andrew Marshall
12382a14be
Use fixed size temporary in LC_RNG for consistency across platforms ( #867 )
2019-07-23 12:39:51 -04:00
Jeffrey Walton
614795f3e1
Add -DNDEBUG for openSUSE standrad build test
2019-07-22 16:10:43 -04:00
Jeffrey Walton
6eab4b7c32
Add openSUSE standard build test (GH #865 )
2019-07-22 15:37:25 -04:00
Jeffrey Walton
9d2cab7548
Add CRYPTOPP_CXX14 define
2019-07-22 01:08:12 -04:00
Jeffrey Walton
a7f2796dda
Update comments
2019-07-21 22:21:10 -04:00
Jeffrey Walton
7b7827e9cb
Clear Clang warning on SSE2 load
2019-07-21 22:20:55 -04:00
Jeffrey Walton
46e58df837
Add LINK_LIBRARY_PATH (GH #866 )
2019-07-21 15:57:26 -04:00
Jeffrey Walton
3747e3d944
Don't use BASH_SOURCE in cryptest.sh
2019-07-21 03:19:14 -04:00
Jeffrey Walton
ed7f4a0493
Use LINK_LIBRARY in cryptest-symbols.sh script (GH #866 )
2019-07-21 03:16:01 -04:00
Jeffrey Walton
dfaf2fc453
Remove references to GNUmakefile.shared (GH# 866)
2019-07-21 03:06:44 -04:00
Jeffrey Walton
ef6e57990e
Use LINK_LIBRARY in cryptest.sh script (GH #866 )
2019-07-21 03:02:43 -04:00
Jeffrey Walton
52ad132134
Add link-library variable to Makefiles (GH #866 )
...
This should help distros and Crypto++ test scripts
2019-07-21 02:24:06 -04:00
Jeffrey Walton
5957b19fb8
Fix AVX2 feature test under Clang 3.3
...
Clang 3.3 appears to support some of AVX2, but it is missing _mm256_broadcastsi128_si256.
2019-07-21 00:27:23 -04:00
Jeffrey Walton
22a55bbbc5
Use wildcard for FORTIFY_SOURCE filter on TCXXFLAGS (GH #865 )
2019-07-19 11:26:20 -04:00
Jeffrey Walton
417fbd719a
Fix missing if statement
...
Copy/paste error from the regular GNUmakefile
2019-07-19 00:16:23 -04:00
Jeffrey Walton
058a59814f
Fix TCXXFLAGS using openSUSE standard flags (GH #865 )
2019-07-19 00:14:25 -04:00
Jeffrey Walton
07c208dbc6
Filter out static_assert from Posix assert test
2019-07-14 22:43:31 -04:00
Jeffrey Walton
769643bbe1
Fix macro paste in CRYPTOPP_ASSERT_JOIN
2019-07-14 19:09:05 -04:00
Jeffrey Walton
388a2e6ded
Fix macro paste in CRYPTOPP_ASSERT_JOIN
2019-07-14 19:04:52 -04:00
Jeffrey Walton
f5881d121a
CRYPTOPP_CXX11_STATIC_ASSERT -> CRYPTOPP_CXX14_STATIC_ASSERT
...
WHoops, this is a C++14 feature
2019-07-14 19:02:58 -04:00
Jeffrey Walton
002e794ae2
Use C++ static_assert from N3928 when available
2019-07-14 18:28:51 -04:00
Jeffrey Walton
5de1089c8c
Update documentation
2019-07-14 12:50:50 -04:00
Jeffrey Walton
e8b07b162f
Avoid preprocessor error in SIZE_MAX (GH #864 )
2019-07-14 00:52:30 -04:00
Jeffrey Walton
6ae9c055cc
Move CRYPTOPP_CXX11 down in list of defines
2019-07-11 12:12:19 -04:00
Jeffrey Walton
f0d7917719
Move CRYPTOPP_NO_CXX11 and CRYPTOPP_NO_CXX17 to config_cxx.h
...
It looks like these two were overlooked during refactoring
2019-07-11 12:10:19 -04:00
Jeffrey Walton
8260dd1e81
Increase m_buf size (GH #862 )
2019-07-10 15:54:48 -04:00
Jeffrey Walton
6d69043403
Add BufferedTransformation GetWord64 and PutWord64 (GH #862 )
2019-07-10 10:04:58 -04:00