Jeffrey Walton
2b3349590f
Clear unreachable code warnings with early MSVC compilers
2019-10-03 06:41:46 -04:00
Jeffrey Walton
bf8a765c32
Fix Rijndael recursion overflow when -DCRYPTOPP_DISABLE_SSSE3 (GH #880 , PR #886 )
2019-09-28 21:37:58 -04:00
Jeffrey Walton
268ea61f1c
Cutover to CRYPTOPP_LLVM_CLANG_VERSION (GH #845 )
...
We were using CRYPTOPP_CLANG_VERSION in some places.
2019-05-21 07:54:47 -04:00
Jeffrey Walton
d2cf296d2a
Fix missing RDRAND and RDSEED GenerateBlock functions when CRYPTOPP_DISABLE_ASM
...
Also see https://github.com/noloader/cryptopp-cmake/issues/44
2018-12-28 12:45:34 -05:00
Jeffrey Walton
3db34abf2f
Add Power9 Random Number Generator support (GH #747 , PR #748 )
2018-11-27 02:54:26 -05:00
Jeffrey Walton
8019362bd6
Clear unused variable warnings under MSVC
2018-08-03 06:17:22 -04:00
Jeffrey Walton
81a5429e56
Remove iPhoneSimulator from Travis allowed failures
2018-08-03 05:44:30 -04:00
Jeffrey Walton
eca0458d03
Update comments
2018-08-03 05:08:21 -04:00
Jeffrey Walton
1bd18dd5ba
Simplify RDRAND and RDSEED logic
...
Travis testing on GitHub showed a RDSEED failure with a "no implementation" failure. Stepping back the RDRAND and RDSEED impl logic was too complex. It offered choices when there was no need for them. For MSC we only need the MASM implementation. For U&L we only need the inline assembly that emits the byte codes (and not the instruction). The byte codes cover from GCC 3.2, Clang 2.8 and onwards
2018-08-03 04:34:20 -04:00
Jeffrey Walton
886e48d85d
Fix failed link on ARM and friends
2018-07-07 21:34:00 -04:00
Jeffrey Walton
b74a6f4445
Add algorithm provider member function to Algorithm class
2018-07-06 09:23:37 -04:00
Fabrice Fontaine
95804ce572
Fix GCC version for RDSEED intrinsic ( #598 )
...
rdseed is only available on gcc 4.8.x, not on gcc 4.7.x
Fixes:
- http://autobuild.buildroot.org/results/9ab386124e4a09b50598c6f95ad40b25a83d227e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2018-03-10 08:38:44 -05:00
Jeffrey Walton
289f3caa2a
Fix GCC version for RDRAND and RDSEED intrinsics
2017-11-07 16:19:46 -05:00
Jeffrey Walton
65823c1623
Fix GCC version for RDRAND and RDSEED intrinsics
2017-11-07 16:16:35 -05:00
Jeffrey Walton
00e1337456
Fix "C2872: 'byte': ambiguous symbol" with Windows Kit (Issue 442, 447)
...
AppVeyor detected the break but we did not receive the email about it. It looks like we have an AppVeyor configuration problem
2017-07-23 11:22:42 -04:00
Jeffrey Walton
1b1c32d7cf
Build RDRAND for all platofrms (Issue 419, PR 424)
...
We have not been able to determine a reliable way to detect cpu's and platforms with Cmake. We are side stepping the Cmake problem by building rdrand.cpp all the time. If its not avilable for a cpu or platform, then RDRAND or RDSEED throw an exception.
2017-05-17 16:21:20 -04:00
Jeffrey Walton
4904a951ce
Fix bad code generation with GCC, -Os and rdseed
2017-05-10 01:28:25 -04:00
Jeffrey Walton
5c42ec96f2
Fix bad GCC code generation with -Os
...
It appears GCC was doing something wonky with the call to RDSEED. The test script was experiencing a hang
2017-05-09 22:47:14 -04:00
Jeffrey Walton
33235f88db
Removed unneeded guard
...
Whitespace check-in
2017-05-09 16:23:30 -04:00
Jeffrey Walton
f817fc7c2e
Clear C4100 warning (Issue 412)
2017-05-09 15:40:49 -04:00
Jeffrey Walton
4f7fee38d6
Mkaake RDRAND and RDSEED throw if not available
...
Fix Carmichael pseudo-prime tests
2017-05-09 13:20:53 -04:00
Jeffrey Walton
d865cf9e62
Fix OpenBSD 6.0 compile with GCC 4.9 (Issue 395)
...
This check-in also enables the 64-bit RDRAND routines for X32. The changes were with held until they could be tested. The testing occurred with Issue 395
2017-03-22 17:26:25 -04:00
Jeffrey Walton
301437e693
Updated static initializers
...
When MSVC init_seg or GCC init_priority is available, we don't need to use the Singleton. We only need to create a file scope class variable and place it in the segment for MSVC or provide the attribute for GCC.
An additional upside is we cleared all the memory leaks that used to be reported by MSVC for debug builds.
2017-03-17 20:47:32 -04:00
Jeffrey Walton
354502d59d
Change HAS_NASM to USE_NASM. The makefile does not etect it automatically
2017-03-14 18:38:37 -04:00
Jeffrey Walton
3f528fef1f
Add guard for RDSEED64 on 32-bit platforms (Issue 387)
...
Cleanup comments in rdrand.cpp and rdrand.asm
2017-03-08 14:09:58 -05:00
Jeffrey Walton
d3bcbc71da
Cutover to fastcall for MASM and X86 (Issue 387)
...
Fix "target specific option mismatch" under GCC 4.6
2017-03-07 12:57:47 -05:00
Jeffrey Walton
19df272d90
Fix output buffer cast in rdrand.cpp (Issue 388)
...
Update comments in rdrand.h
Fix compile on CentOS 5 with GCC 4.1
2017-03-07 10:01:26 -05:00
Jeffrey Walton
585b23d7b1
Removed test define from rdrand.cpp
...
The library should use the intrinsics if they are available. This change should have been included with Commit 14d92f9eba
.
2017-03-07 04:39:08 -05:00
Jeffrey Walton
14d92f9eba
Improve performance of RDRAND and RDSEED (Issue 387)
2017-03-07 03:57:23 -05:00
Jeffrey Walton
5efb019d8b
Add C++ nullptr support (Issue 383)
2017-03-01 06:10:06 -05:00
Jeffrey Walton
62f92dd592
Change next version from 5.7 to 6.0
...
Crypto++ 5.7 was the increment after the 5.6.5 release. Crypto++ 6.0 accurately reflects compatibility
2017-02-21 12:59:20 -05:00
Jeffrey Walton
8c20630c2d
Remove extra preamble for copyright.
...
Similar text may be added in the future
2017-02-21 02:54:09 -05:00
Jeffrey Walton
f7df2de284
Switch to PutWord for rdrand.cpp
2016-11-14 02:21:02 -05: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
d317881da9
Fix GCC compile error under LP64 data model (Issue 236)
2016-09-07 13:27:04 -04:00
Jeffrey Walton
c4f9a7cfce
Fix compile under iOS
2016-07-13 01:45:09 -04:00
Jeffrey Walton
0deae2c974
Simplify RDRAND and RDSEED implementation selection logic. Its was too convoluted
2016-07-10 23:50:31 -04:00
Jeffrey Walton
a017dbdeab
Fix SunCC version for RDSEED, which is available in Sun Studio 12.5
2016-07-10 21:30:51 -04:00
Jeffrey Walton
f8200af3ae
Add SunCC 12.4 support for specialized implementations if CRC, RDRAND and BLAKE2
2016-07-10 16:21:19 -04:00
Jeffrey Walton
36da00cc92
Add RDRAND and RDSEED for SunCC 12.1 and above
2016-07-10 15:16:20 -04:00
Jeffrey Walton
6c0b120072
Go back to Commit 66ada4cc61
2016-07-06 14:39:18 -04:00
Mouse
87be783cd1
Revert "Merge remote-tracking branch 'upstream/master'" - not intended to be merged by me
...
This reverts commit 762c315566
, reversing
changes made to b48866631a
.
2016-07-06 12:01:28 -04:00
Jeffrey Walton
fb72dbc8cb
Add MacPorts GCC compiler and Clang integrated assembler support. This is a merge of the development branch 'clang-ia'
2016-07-05 02:48:27 -04:00
root
d21248b995
Use _rdrand32_step for X32. Whitespace
2016-06-21 21:22:50 -04:00
Jeffrey Walton
2efe26a418
Update comment. Whitespace cleanup
2016-06-14 20:50:39 -04:00
Jeffrey Walton
9937f4e8ba
Fix compiler include detection under LLVM and Apple Clang (Issue 183)
2016-06-12 08:59:15 -04:00
Jeffrey Walton
15973a1a01
Revert "Fix missing clobbered registers (Issue 124)"
...
The commit broke compilation on an Athlon x2 used for testing.
This reverts commit b0fb747182
.
2016-01-26 03:10:46 -05:00
Name
b0fb747182
Fix missing clobbered registers (Issue 124)
2016-01-26 02:15:16 -05:00
Jeffrey Walton
0f4b86c62a
Revert "Fix missing clobbered registers (Issue 124)". This will be the last attempt to get the attribution correct.
...
This reverts commit 4c1d629284
.
2016-01-26 02:12:44 -05:00
Name
4c1d629284
Fix missing clobbered registers (Issue 124)
2016-01-26 02:07:16 -05:00