Commit Graph

2768 Commits (d44a81f91cc6d1de008e0181a1a641bb7ebf929e)

Author SHA1 Message Date
Marcel Raad d44a81f91c Enforce LF line endings for shell scripts (#451)
This tells git to check out *.sh files with LF line endings. Otherwise,
Cygwin and Windows 10's Bash cannot run them.
2017-07-28 15:14:29 -04:00
Jeffrey Walton 3fc7b104e6
Update documentation 2017-07-28 12:35:25 -04:00
Jeffrey Walton 46993f10f4
Update documentation 2017-07-28 11:50:11 -04:00
Jeffrey Walton ade3b319a9
Assign t and v together in Sosemanuk (Issue 449)
This saved about 0.1 cpb, and increased throughput to 1536 MiB/s
2017-07-28 01:34:53 -04:00
Jeffrey Walton ed4c345ce8
Clear Clang -Wsequence-point warning (Issue 449) 2017-07-28 00:33:45 -04:00
Jeffrey Walton d0cd32f405
Make SecBlock<T,A> data members protected
Also see http://github.com/weidai11/cryptopp/issues/448
2017-07-27 20:28:23 -04:00
Jeffrey Walton 2c9a3039e8
Update documentation
This cleanup was performed using Clang and -Wdocumentation -Wno-documentation-deprecated-sync
2017-07-27 19:15:21 -04:00
Jeffrey Walton fec712491e
Add /dev/random usage note on Linux 2017-07-26 22:33:37 -04:00
Jeffrey Walton 9242b7c918
Add UnkeyedRNG, UnkeyedHash and UnkeyedOther
Some RNGs are keyed, like AES/OFB. However, for classification, we treat them as unkeyed.
2017-07-23 23:52:34 -04:00
Jeffrey Walton 030de2e457
Fix multiple output of shared key benchmarks
Benchmark2 is used to benchmark shared key algorithms. At the moment Benchmark2 is all or nothing. It does not understand SharedKeyMAC, SharedKeyStream, SharedKeyBlock. It will be fixed in the future.
2017-07-23 23:25:39 -04:00
Jeffrey Walton 34c4c9f1bd
Move 'main' into CryptoPP::Test, proxy an empty main into Test::main (Issue 447)
This seems to be a little cleaner than the triage at 00e1337456 commit.
2017-07-23 16:20:52 -04: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 5103f6dd41
Remove gyrations around CRYPTOPP_NO_UNALIGNED_DATA_ACCESS
CRYPTOPP_NO_UNALIGNED_DATA_ACCESS was required in Crypto++ 5.6 and earlier because unaligned data access was the norm. It caused problems at -O3 and on ARM NEON.
At Crypto++ 6.0 no unaligned data access became a first class citizen. Folks who want to allow it must now define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
2017-07-23 11:14:02 -04:00
Jeffrey Walton 00f9818b5d
Move byte to Crypto++ namespace (Issue 442)
Also see http://www.cryptopp.com/wiki/std::byte and http://github.com/weidai11/cryptopp/issues/442
2017-07-20 09:55:29 -04:00
Marcel Raad 3485d2180d Fix Visual Studio project file issues (#446)
- don't enable SSE2 explicitly for x64, it's always enabled and causes
  warnings (issue #445)
- remove newlines in project files that Visual Studio doesn't like and
  removes on every change to project options
2017-07-19 07:17:55 -04:00
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