Commit Graph

2753 Commits

Author SHA1 Message Date
Marcel Raad
d9de314e86 Fix Windows compilation issues (by RaptorFactor) (#444)
* Fix compilation on Windows with /DUNICODE

* Fix linking of fipstest for MSVC targeting ARM (__crt_debugger_hook is not available).

* Fix build for Clang on Windows with optimizations on.

* Fix a warning about a non-existant warning under Clang.

* Fix compilation under Intel C++ 18.0 on Windows
2017-07-17 12:10:38 -04:00
Jeffrey Walton
50d1ea8314
Cleared fall through warnings under GCC 7 (Issue 441) 2017-07-17 04:48:28 -04:00
Jeffrey Walton
fe63795638
Add byte typedef in Kalyna's anonymous namespace to avoid issues with globally scoped byte
This check-in supports Romain Geissler's work on cleaning up our use of ::byte when it collides with std::byte. Regardless of what happens, such as removing ::byte and adding CryptoPP::byte, providing the typedef here makes Kalyna immune to the outside changes. Also see Pull Request 437 and 438.
2017-07-16 11:11:41 -04:00
Marcel Raad
32f715f1d7 Fix Windows XP support on Visual Studio 2015+ (#439)
When compiling with Visual Studio 2015+, Crypto++ uses CryptoNG by
default. CryptoNG is only available on Windows Vista and later and
Crypto++ currently ignores if the user explicitly wants to target
Windows XP. Unlike with other Windows SDK features, everything
compiles, but the application doesn't start on Windows XP because
bcrypt.dll is missing. That is an issue when updating Visual Studio
because the root cause is hard to find.
Making use of CryptoNG when targeting Windows 8+ instead by default,
regardless of the Visual Studio version, to fix this.
2017-06-24 17:41:20 -04:00
Romain Geissler @ Amadeus
aaf62695fc Fix C++17 build (PR 437) 2017-06-18 15:22:32 -04:00
Jeffrey Walton
1565020bfd
Guard use of X86 ASM for ARM, MIPS and other platforms
In the bigger picture, the code to use inline ASM when intrinsics are not available still needs to be checked-in. Its a big change since we moved into SSE4, AVX and SHA. Design changes are still being evaluated, and its still being tested.
2017-06-06 09:39:46 -04:00
Jeffrey Walton
429047a8e9
Clear Visual Studio warnings (Issue 412) 2017-06-02 07:13:43 -04:00
Jeffrey Walton
7ac77ca9ac Revert "Revert "Clear Visual Studio warnings (Issue 412)""
This reverts commit c3871aec94.
2017-06-02 05:18:52 -04:00
Jeffrey Walton
c3871aec94 Revert "Clear Visual Studio warnings (Issue 412)"
This reverts commit eb3b27a6a5. The change broke GCC 4.8 and unknown version of Clang on OS X. UB reported the OS X break, and JW found duplicated the break on a ARM CubieTruck with GCC 4.8.
2017-06-02 05:06:56 -04:00
Jeffrey Walton
dd42fa3ef6
Add notification address of cryptopp-build@googlegroups.com (Take 2) 2017-05-31 07:22:04 -04:00
Jeffrey Walton
a33504c8f8
Add notification address of cryptopp-build@googlegroups.com
Its a new Google Group created at https://groups.google.com/forum/#!forum/cryptopp-build. The list should allow us to run services on unprivileged forks and other unrelated accounts while making it easy to find results.
2017-05-31 04:36:31 -04:00
Jeffrey Walton
8988e36a48
Re-add CRYPTOPP_DLL to AssignIntToInteger
It looks like it was accidentally blown out at commit eb3b27a6a5
2017-05-30 16:59:29 -04:00
Jeffrey Walton
eb3b27a6a5
Clear Visual Studio warnings (Issue 412) 2017-05-30 16:37:41 -04:00
Jeffrey Walton
23448050c0
Export AssignIntToInteger for FIPS DLL builds (Issue 389) 2017-05-30 05:50:57 -04:00
Jeffrey Walton
52b4cceda5
Remove extraneous return 2017-05-29 21:53:59 -04:00
Jeffrey Walton
ce5ac01193
Use consistent names like MinEntropyLength()
Avoid member function names like GetMinEntropy()
2017-05-29 02:44:55 -04:00
Jeffrey Walton
ae3922dda0
Remove calls to cout.flush() for AppVeyor
They seemed to produce a hang when running self tests in AppVeyor.
Also use IsDebuggerPresent() to determine when we should call DebugBreak(). The OS killed our debug build when fuzzing caused an assert to fail
2017-05-29 00:43:20 -04:00
Jeffrey Walton
0df38c3506
Fix build timeout due to tracking vars under UBsan
Also see https://stackoverflow.com/q/2954473/608639 and https://stackoverflow.com/q/708807/608639
2017-05-28 17:00:09 -04:00
Jeffrey Walton
81c751314b
Add reset-fork script to testing 2017-05-28 16:11:28 -04:00
Jeffrey Walton
567e4f31b4
Update travis.yml for Clang, GCC and OS X
Thanks to Hiro Asari on the Travis GitHub for helping with the last of the issues
2017-05-28 02:42:40 -04:00
Hiro Asari
b120276f3e Define matrix exclusion (#432) 2017-05-28 01:17:28 -04:00
Jeffrey Walton
814de0f0c7
Use "relative" option for gcov recipe 2017-05-27 07:18:48 -04:00
Jeffrey Walton
a139d6a846
Cleanup gcov artifacts in clean rule 2017-05-27 07:02:44 -04:00
Jeffrey Walton
0885ce2bcc
Attempt to add Code Coverage report (Take 5)
This should be interesting...
2017-05-27 06:41:02 -04:00
Jeffrey Walton
ea3ea9deb5
Add missing semi-colon 2017-05-27 05:50:01 -04:00
Jeffrey Walton
cab2b5a181
Reduce optimizations for code coverage recipes 2017-05-27 05:16:09 -04:00
Jeffrey Walton
b5240463f1
Attempt to add Code Coverage report (Take 4)
This should be interesting...
2017-05-27 04:21:51 -04:00
Jeffrey Walton
40395c0150
Attempt to add Code Coverage report (Take 3)
This should be interesting...
2017-05-27 03:47:50 -04:00
Jeffrey Walton
345b4e49e2
Attempt to add Code Coverage report (Take 2)
This should be interesting...
2017-05-27 03:42:50 -04:00
Jeffrey Walton
3c504b3401
Attempt to add Code Coverage report
This should be interesting...
2017-05-27 03:08:07 -04:00
Jeffrey Walton
37cd5bcf7b
Remove VS2010 and VS2012 configurations
Apparently Appveyor does not support them. Also see https://stackoverflow.com/q/43441273/608639
2017-05-27 01:19:48 -04:00
Jeffrey Walton
b02ab0a0ba
Tune Travis configuration
Now that the jobs are running we can start fixing the little issues
2017-05-27 00:41:58 -04:00
Jeffrey Walton
ea12b5af0b
Use IS_IOS instead of IS_DARWIN 2017-05-26 22:23:35 -04:00
Jeffrey Walton
0af3a2525c
Update makefile rules and recipes 2017-05-26 22:20:38 -04:00
Jeffrey Walton
84e6961457
Updated makefile trim and convert rules
Whitespace check-in
2017-05-26 10:08:44 -04:00
Jeffrey Walton
4f5dd74286
Update Travis config file 2017-05-26 09:41:15 -04:00
Jeffrey Walton
3bb801101f
Updated test script 2017-05-26 09:29:05 -04:00
Jeffrey Walton
b770b21dc4
Fix Travis hang 2017-05-26 06:30:46 -04:00
Jeffrey Walton
554ce2c577
Updated test script 2017-05-26 05:28:51 -04:00
Jeffrey Walton
6055aac84f
Updated test script 2017-05-26 04:36:38 -04:00
Jeffrey Walton
167d4ae1a5
Updated test script 2017-05-26 04:27:45 -04:00
Jeffrey Walton
5115ca8d8c Merge branch 'master' of https://github.com/weidai11/cryptopp 2017-05-26 04:13:00 -04:00
Jeffrey Walton
aeb7f9bac9
Updated test script 2017-05-26 04:12:21 -04:00
Jeffrey Walton
306c88c857
Updated test script 2017-05-26 04:03:38 -04:00
Marcel Raad
77bea3f630 hrtimer.cpp: fix Win32 DLL-Import build (#425)
PerformanceCounterFrequency is used independently of CRYPTOPP_IMPORTS.
2017-05-26 03:13:18 -04:00
Jeffrey Walton
de1270656c
Avoid extra ByteReverse when using Intel SHA extensions
This gains about 0.6 cpb. SHA-1 is down to 1.7 to 1.9 cpb. SHA-256 is not affected
2017-05-26 01:51:44 -04:00
Jeffrey Walton
bd7aa155a6 Revert "Avoid extra ByteReverse"
This reverts commit 3b56ba118f. It broke Tiger and SEAL. Arg...
2017-05-25 06:46:40 -04:00
Jeffrey Walton
b447a7bf15
Add missing header 2017-05-25 06:26:43 -04:00
Jeffrey Walton
3b56ba118f
Avoid extra ByteReverse
This gains about 0.6 cpb. SHA-1 is down to 1.9 cpb. SHA-256 is not affected
2017-05-25 06:20:00 -04:00
Jeffrey Walton
b65ec291ea
Updated test script 2017-05-25 00:04:45 -04:00