Jeffrey Walton
2a09376211
Remove const_cast from CryptogamsArmCaps()
2019-05-23 03:17:17 -04:00
Jeffrey Walton
c5bb85754f
Add RDRAND and RDSEED test programs
...
These are for Autotools on Solaris.
2019-05-22 21:25:31 -04:00
Jeffrey Walton
fed4a55f39
Update cryptest-autotools script
2019-05-22 21:03:19 -04:00
Jeffrey Walton
57b85fafce
Update Cryptogams SHA headers (GH #846 )
2019-05-22 19:11:16 -04:00
Jeffrey Walton
7eaa5837e0
Fix "unexpected reloc type 0x03" for ARM shared object (GH #846 )
2019-05-22 19:00:08 -04:00
Jeffrey Walton
ce5d5d5c0f
Use CRYPTOGAMS_armcap_loc for word label
2019-05-22 06:37:16 -04:00
Jeffrey Walton
0a4b370d3f
Use CRYPTOGAMS_armcaps
...
It looks like CRYPTOGAMS_armcap was used in some places, and it broke Autotools
2019-05-22 05:46:06 -04:00
Jeffrey Walton
13e3a19e94
Remove __KERNEL__ guard
...
Andy's code is used in the Linux kernel. The define is not needed here.
2019-05-22 05:12:16 -04:00
Jeffrey Walton
073c246595
Rename CRYPTOGAMS_armcap_P to CRYPTOGAMS_armcap
2019-05-22 05:01:27 -04:00
Jeffrey Walton
50dd3ad354
Spelling
2019-05-22 03:04:38 -04:00
Jeffrey Walton
7287a79669
Use config_ver.h in change-version script
2019-05-22 02:56:37 -04:00
Jeffrey Walton
1abab8050e
Clear documentation warnings
2019-05-22 02:53:26 -04:00
Jeffrey Walton
879b8c6fe9
Remove unused CLANG_INTEGRATED_ASSEMBLER from Makefile
...
This is an artifact that should have been removed at CRYPTOPP_DISABLE_MIXED_ASM.
2019-05-21 20:05:44 -04:00
Jeffrey Walton
f396ade93a
Rename XGETBV to XGETBV64
2019-05-21 19:44:48 -04:00
Jeffrey Walton
6f3be56c9d
Update comments
2019-05-21 19:40:11 -04:00
Jeffrey Walton
02cdbf61d3
Rename ExtendedControlRegister to XGETBV
2019-05-21 19:31:13 -04:00
Jeffrey Walton
cf85d768b4
Fix armv8l-unknown-linux-gnueabihf yet again
2019-05-21 18:48:13 -04:00
Jeffrey Walton
5e15b46234
Fix Aarch64 compile in CPU_ProbeARMv7
...
Previous to the Cryptogams cut-in we could be sloppy and return anything for ARMv8. Now e have real code backing ARMv7 we need to return an accurate value.
2019-05-21 08:13:52 -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
2d4a932c33
Remove -tvos_simulator_version_min from AppleTVSimulator
...
It did not clear the problem.
2019-05-21 07:08:41 -04:00
Jeffrey Walton
5b1cae0c63
Fix compile using MSVC 2013 ARM
2019-05-21 06:54:33 -04:00
Jeffrey Walton
751515901b
Limit Cryptogams AES and SHA to Linux distros
...
The Apple assembler cannot translate the source files for iOS.
2019-05-21 05:59:58 -04:00
Jeffrey Walton
ddb9249444
Fix source warning
2019-05-21 05:44:21 -04:00
Jeffrey Walton
1973674732
Add sanity check to setenv-*.sh scripts
...
Prompt user to source the script when required. Whitespace check-in
2019-05-21 05:37:40 -04:00
Jeffrey Walton
3e897eb0f6
Use CRYPTOPP_ARM_NEON_AVAILABLE in neon_simd.cpp
2019-05-21 05:11:24 -04:00
Jeffrey Walton
02baab2307
Enable Cryptogams AES on ARM using Clang
...
It looks like AES needed -mthumb for Clang. SHA must not use -mthumb under Clang due to a crash.
2019-05-21 04:23:40 -04:00
Jeffrey Walton
6acbbf1849
Fix crash in GCM mode on ARM with -mthumb
2019-05-21 04:03:22 -04:00
Jeffrey Walton
08235400b0
Add CRYPTOPP_CLANG_VERSION for ARM asm defines
...
We should be using both CRYPTOPP_APPLE_CLANG_VERSION and CRYPTOPP_LLVM_CLANG_VERSION. We'll loop back to it when we have some time.
2019-05-21 03:02:35 -04:00
Jeffrey Walton
5fb03078eb
Use void return value for Cryptogams SHA functions
2019-05-21 02:38:30 -04:00
Jeffrey Walton
e8603143dc
Whitespace check-in
...
We also simplified the CPU_ProbeNEON logic a bit to a vmov.u32 and vshl.u32.
2019-05-21 02:21:15 -04:00
Jeffrey Walton
40251d9b7f
Guard CPU_ProbeARMv7 with CRYPTOPP_BOOL_ARM32 (GH #844 )
...
We make these queries available on all platforms so folks don't need to guard code.
2019-05-20 23:33:06 -04:00
Jeffrey Walton
c456d6aa69
Guard CPU_ProbeARMv7 with CRYPTOPP_BOOL_ARM32 (GH #844 )
...
We make these queries available on all platforms so folks don't need to guard code.
2019-05-20 23:30:12 -04:00
Jeffrey Walton
cc011d2e44
Remove Aarch32 and Aarch64 from CPU_QueryARMv7
...
I believe some of the code may be generated differently. When testing CPU_ProbeARMv7 I had trouble compiling it on ARMv8.
2019-05-20 23:09:57 -04:00
Jeffrey Walton
a9be7ced86
Fix CPU_QueryARMv7 for Clang (GH #844 )
...
This fixes the query under Clang. This appears to be a trickier problem because there is no explicit define for HWCAP_ARMv7. We rely on HWCAP_NEON as a proxy, or fallback to a CPU_ProbeARMv7.
2019-05-20 23:02:36 -04:00
Jeffrey Walton
a164c1f41d
Fix CPU_ProbeARMv7 for Clang (GH #844 )
...
This fixes the probe undr Clang. However, we need to fix the CPU_QueryARMv7
2019-05-20 21:41:57 -04:00
Jeffrey Walton
c0cff24953
Update comments
2019-05-20 17:11:59 -04:00
Jeffrey Walton
b1b6ea5b78
Fold declarations for CRYPTOGAMS_armcaps
...
Also declare storage for CRYPTOGAMS_armcaps. This moves the symbol from BSS to initialized data. The Cryptogams module declares the symbol as common, so they are weak and use our declaration.
2019-05-20 17:03:57 -04:00
Jeffrey Walton
5c7c092336
Cleanup Cryptogams defines
2019-05-20 16:39:26 -04:00
Jeffrey Walton
00155d42cc
Enable Cryptogams SHA asm for Clang
...
AES is still disabled
2019-05-20 15:29:30 -04:00
Jeffrey Walton
9590481c7f
Update cryptest-autotools.sh
2019-05-20 03:48:02 -04:00
Jeffrey Walton
122529ed4a
Add test for automake in cryptest-autotools.sh
2019-05-19 21:46:36 -04:00
Jeffrey Walton
e0b60439bf
Fix Scrypt crash when blockSize is 0 (GH #842 )
...
This may change in the future. I prefer to recover, and use default block size when block size is 0. But this stops the immediate problem of a crash.
2019-05-19 21:24:32 -04:00
Jeffrey Walton
2c0455edf8
Add additional asserts in Scrypt::ValidateParameters (GH #842 )
...
We still need to figure out what to do, but we can start warning users immediately.
2019-05-19 18:52:37 -04:00
Jeffrey Walton
e3788aacc5
Display C++ for SHA512_AlgorithmProvider on ARM
2019-05-19 18:17:46 -04:00
Jeffrey Walton
6528561cb3
Update comments
2019-05-19 18:10:09 -04:00
Jeffrey Walton
e19a6152b5
Return CRYPTOGAMS_armcaps in CryptogamsArmCaps
2019-05-19 16:51:40 -04:00
Jeffrey Walton
62d53e6c44
Disable Cryptogams ASM on static Transform function
...
This needs mmore testing.
2019-05-19 16:46:01 -04:00
Jeffrey Walton
d38e5a954d
Add ARM SHA512 asm implementation from Cryptogams (GH #841 , PR #843 )
...
Cryptogams is Andy Polyakov's project used to create high speed crypto algorithms and share them with other developers. Cryptogams has a dual license. First is the OpenSSL license because Andy contributes to OpenSSL. Second is a BSD license for those who want a more permissive license.
Andy's implementation runs about 45% faster than C/C++ code. Testing on a 1.8 GHz Cortex-A17 shows Cryptograms at 45 cpb, and C++ at 79 cpb.
The integration instructions are documented at [Cryptogams SHA](https://wiki.openssl.org/index.php/Cryptogams_SHA ) on the OpenSSL wiki.
2019-05-19 16:29:45 -04:00
Jeffrey Walton
4c9ca6b723
Add ARM SHA256 asm implementation from Cryptogams (GH #840 , PR #840 )
...
Cryptogams is Andy Polyakov's project used to create high speed crypto algorithms and share them with other developers. Cryptogams has a dual license. First is the OpenSSL license because Andy contributes to OpenSSL. Second is a BSD license for those who want a more permissive license.
Andy's implementation runs about 45% faster than C/C++ code. Testing on a 1 GHz Cortex-A7 shows Cryptograms at 17 cpb, and C++ at 30 cpb.
The integration instructions are documented at [Cryptogams SHA](https://wiki.openssl.org/index.php/Cryptogams_SHA ) on the OpenSSL wiki.
2019-05-19 06:59:12 -04:00
Jeffrey Walton
8c99b1cd75
Add call to automake in cryptest-automake.sh
2019-05-19 02:26:44 -04:00