Jeffrey Walton
5849050e14
Cleared warning 'extra ";" ignored'
2016-06-08 16:13:48 -04:00
Jeffrey Walton
0414faff8e
Revert "Add hack to pickup C++11 alignas"
...
This reverts commit 16df6e64a8 . Detailed testing is revealing some fractures. The pain point seems to be C++11 is more strict about the location of the 'alignas(N)' in the statement-expression. Some compilers accept a looser grammar; while others do not.
Clang 3.3 is rejecting some of the statements with CRYPTOPP_ALIGN_DATA(N). Others may do the same, and we need to look at ICC in particular.
2016-06-07 15:22:11 -04:00
Jeffrey Walton
16df6e64a8
Add hack to pickup C++11 alignas
2016-06-06 23:57:46 -04:00
Jeffrey Walton
e961c2da5b
Merge Atomics branch into Master
2016-06-06 22:08:04 -04:00
Jeffrey Walton
370483c7aa
Change guard for AES, RDRAND and RDSEED. There's no sense in performing the test if none of the features are available
2016-06-05 22:31:10 -04:00
Jeffrey Walton
5c311d7fab
Remove -march=native from AES, RDRAND and RDSEED test
2016-06-05 22:25:08 -04:00
Jeffrey Walton
259f845bd4
Removed unneeded diagnostic
2016-06-05 18:21:05 -04:00
Jeffrey Walton
cdd88236af
Add test for modern compiler and old hardware
2016-06-05 18:15:47 -04:00
Jeffrey Walton
5d9607613a
Fix hasSSE3/hasSSE4 transposiion. Remove Padlock reporting
2016-06-05 17:23:21 -04:00
Jeffrey Walton
7b901f8edc
Add -std=c++03, -std=c++11 and -std=c++14 to filtered flags
2016-06-03 18:02:30 -04:00
Jeffrey Walton
07406e2656
Fix Git merge butchering files. Add -march=armv8-a+crypto and -march=armv8-a+crc to filered flags
2016-06-03 17:55:54 -04:00
Jeffrey Walton
9b6d7ae156
Merge branch 'master' into arm-neon
...
Conflicts:
cryptest.sh
2016-06-03 17:37:40 -04:00
Jeffrey Walton
a4dd3ba97a
Add code to respect user CXXFLAGS while removing flags we explicitly test
2016-06-03 17:33:41 -04:00
Jeffrey Walton
b0dc644d70
Merge pull request #175 from aberaud/master
...
cmake: add BUILD_(STATIC/SHARED) to specify which flavor to build
2016-06-01 14:30:13 -07:00
Adrien Béraud
294c0f9da6
cmake: add BUILD_(STATIC/SHARED) to specify which flavor to build
2016-06-01 17:21:40 -04:00
Jeffrey Walton
1ee66a8fc2
Merge arm-neon into master
2016-06-01 03:10:18 -04:00
Jeffrey Walton
eaafd4206e
Change "result=false" to "return fals". There's no sense in trying the instruction if we can't catch the SIGILL or we can't restore SIGMASK state
2016-06-01 01:27:53 -04:00
Jeffrey Walton
87e2da8388
Fix missing oldMask for x86
2016-05-31 23:25:44 -04:00
Marcel Raad
a10d3c17ba
Fix clang warning
...
In 64-bit mode, clang 3.8 warns:
cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
Fix this by directly returning NULL in these functions.
2016-05-31 12:55:03 +02:00
Jeffrey Walton
ec8c794a26
Removed duplicate C++11 atomics block. Fixed comment on CRYPTOPP_CXX11_ALIGNAS availability under MS toolchain
2016-05-30 17:46:00 -04:00
Jeffrey Walton
77f870abb3
Cleared "C4101: unreferenced local variable" under Visual Studio
2016-05-30 08:35:58 -04:00
Jeffrey Walton
f41adb8589
Fix "Too many initializers" under Visual Studio 2012
2016-05-30 07:49:14 -04:00
Jeffrey Walton
fd6ccce8ed
Added non-zero terms to CRC detection code. Exercise all SHA1 instructions during feature test. Apply GCC optimization workaround to MSVC code paths to avoid potential problems
2016-05-30 06:37:08 -04:00
Jeffrey Walton
89ec42b1f2
Fix GCC optimizing away feature tests
2016-05-30 03:08:53 -04:00
Jeffrey Walton
be572877f6
Commented out assert. Its still firing without an accompanying SIGBUS
2016-05-28 19:22:24 -04:00
Jeffrey Walton
08fb87417d
Updated test script to print more platform information
2016-05-28 16:35:56 -04:00
Jeffrey Walton
b86f3fef87
Backed-off assert for input byte array
2016-05-28 16:01:18 -04:00
Jeffrey Walton
3b583346ae
Added test cases for ARM CRC and Crypto extensions
2016-05-28 15:59:14 -04:00
Jeffrey Walton
b2c38f07a2
Fix ARm-64 detection
2016-05-28 10:19:21 -04:00
Jeffrey Walton
a75abe0de2
Added test cases for ARM CRC and Crypto extensions
2016-05-28 10:10:03 -04:00
Jeffrey Walton
33582d330a
Merge branch 'master' into arm-neon
2016-05-25 18:07:18 -04:00
Jeffrey Walton
432db09b72
Removed CRYPTOPP_DISABLE_ASM from __BMI__ check
2016-05-25 17:48:16 -04:00
Jeffrey Walton
3a26c34721
Simplified tests ARM features. Tied ARM intrinsics to CRYPTOPP_DISABLE_ASM to allow easier user control and testing
2016-05-22 13:02:53 -04:00
Jeffrey Walton
addf45d4da
Simplified tests ARM features. Tied ARM intrinsics to CRYPTOPP_DISABLE_ASM to allow easier user control and testing
2016-05-22 13:02:09 -04:00
Jeffrey Walton
428b5a4e36
Merge branch 'master' into arm-neon
2016-05-22 11:37:10 -04:00
Jeffrey Walton
09dc7caf25
Increase allocation size of FixedSizeAlignedSecBlock for State and ParameterBlock
2016-05-22 10:36:03 -04:00
Jeffrey Walton
733c78ba23
Relocate ARM defines to contribute to CRYPTOPP_BOOL_ALIGN16
2016-05-21 15:50:04 -04:00
Jeffrey Walton
07cf417d15
Merge branch 'master' into arm-neon
2016-05-21 13:00:35 -04:00
Jeffrey Walton
884f7fd4ac
Remove uneeded assert
2016-05-21 13:00:00 -04:00
Jeffrey Walton
14fcf50ae0
Add missing constants for Debug builds
2016-05-21 12:58:55 -04:00
Jeffrey Walton
98944d2252
Merge branch 'master' into arm-neon
2016-05-21 12:30:20 -04:00
Jeffrey Walton
2162219299
Add call to ThrowIfInvalidTruncatedSize in TruncatedFinal
2016-05-21 12:28:52 -04:00
Jeffrey Walton
c4c5a50adf
Merge branch 'master' into arm-neon
2016-05-21 12:20:18 -04:00
Jeffrey Walton
309fbc2e78
Fix hash calculation for big endian machines. Remove unused functions
2016-05-21 12:19:57 -04:00
Jeffrey Walton
3cd857de7a
Fix hash calculation for big endian machines. Remove unused functions
2016-05-21 12:19:01 -04:00
Jeffrey Walton
a6d58714ac
Avoid Valgrind uninitialized warning by defering checks and using asserts
2016-05-21 08:45:05 -04:00
Jeffrey Walton
6a6027c2cd
Include "cpu.h" rather than <immintrin.h> directly to avoid compile error when using GCC and -mno-sse<N>
2016-05-21 08:32:23 -04:00
Jeffrey Walton
f260be1f42
Updated documentation
2016-05-21 08:17:49 -04:00
Jeffrey Walton
d7c832b813
Remove ILP32 from CRYPTOPP_L1_CACHE_LINE_SIZE. Clang defines it for all 32-bit data models, and not just X32
2016-05-20 16:38:42 -04:00
Jeffrey Walton
9534ce5bc5
Add ARM-64 defines for CRYPTOPP_L1_CACHE_LINE_SIZE
2016-05-20 16:28:55 -04:00