Commit Graph

4417 Commits (f74b8c8344e5e65a86098a3a43d6ecb52b2b5aab)

Author SHA1 Message Date
Jeffrey Walton f74b8c8344
Fix -Wreorder warning using GCC 2018-12-06 08:39:19 -05:00
Jeffrey Walton fd15d998be
Update comments 2018-12-05 19:53:14 -05:00
Jeffrey Walton 7656ff2b49
Fix Fedora and Red Hat feature tests
They use a hardened build and include flags like -Werror=XXX and -Wp,FORTIFY_SOURCE
2018-12-05 18:35:21 -05:00
Jeffrey Walton a6067da355
Fix Fedora and Red Hat feature tests
They use a hardened build and include flags like -Werror=XXX and -Wp,FORTIFY_SOURCE
2018-12-05 18:30:25 -05:00
Jeffrey Walton 8769302a8b
Add CRYPTOPP_DISABLE_MIXED_ASM define and feature test (GH #756, PR #757) 2018-12-05 13:22:10 -05:00
Jeffrey Walton 4b295f1f32
Use const_cast instead of reinterpret_cast 2018-12-04 22:12:07 -05:00
Jeffrey Walton 7832ae3733
Switch to uintptr_t for IsAlignedOn
I thought this might be part of the problem for https://groups.google.com/d/msg/cryptopp-users/sHCHSjM7scY/PkcSbIo-DQAJ but it did not help. However, the uintptr_t is the proper cast here.
2018-12-04 21:42:23 -05:00
Jeffrey Walton a1c89661bc
Fix -xarch for CLMUL on Solaris 2018-12-04 18:32:45 -05:00
Jeffrey Walton cdefa5befe
Test Travis Xenial build
I can't test on my fork at the moment because it is tied up with some other changes. Also see https://blog.travis-ci.com/2018-11-08-xenial-release.
2018-12-04 11:05:16 -05:00
Jeffrey Walton 482151a980
Fix Aarch64 with early GCC 2018-12-04 05:49:21 -05:00
Jeffrey Walton 800dd99c60
Add init priorities for XLC compilers 2018-12-04 04:13:58 -05:00
Jeffrey Walton 71ce30f75f
Whitespace check-in 2018-12-04 03:56:47 -05:00
Jeffrey Walton fc5019a89e
Add test_x86_avx512.cxx (GH #753) 2018-12-04 00:11:33 -05:00
Jeffrey Walton 53bdcb2053
Add test_x86_avx512.cxx (GH #753) 2018-12-04 00:09:56 -05:00
Jeffrey Walton 13f7bd7ffb
Make GF2_32 class member of RawIDA 2018-12-03 08:32:22 -05:00
Jeffrey Walton 0b1162aa34
Update documentation 2018-12-03 06:55:57 -05:00
Jeffrey Walton 6729b29410
Move DEFAULT_CHANNEL and AAD_CHANNEL defs into cryptlib.cpp (GH #751)
The library used to provide DEFAULT_CHANNEL and AAD_CHANNEL this way. We experienced Static Initialization Order Fiasco crashes on occassion, so we moved them into cryptlib.h with internal linkage. The cost was, each translation unit got a copy of the strings which contributed to bloat. Issue 751 shows Clang compiles the global constructors for DEFAULT_CHANNEL and AAD_CHANNEL above the base ISA so we caught crashes on OS X with down-level hardware.

We are now at a "pick your poison" point. We selected Static Initialization Order Fiasco because it seems to be less prevalent.

Hat tip to the C++ Committee for allowing this problem to fester for three decades.
2018-12-03 06:33:15 -05:00
Jeffrey Walton 318d53f6f9
Avoid use of NDEBUG in source files
Posix NDEBUG causes our test script to fail the Posix Assert test
2018-12-03 04:18:41 -05:00
Jeffrey Walton 774454ba7c
Cleanup Disable rules for x86 2018-12-01 21:33:17 -05:00
Jeffrey Walton 62b1b7d65b
Update comments 2018-12-01 13:13:35 -05:00
Jeffrey Walton de2c09eea5
Remove unneeded test program 2018-12-01 12:49:57 -05:00
Jeffrey Walton 92ae496c80
Update GNUmakefile-cross for feature tests (GH #741) 2018-12-01 12:48:47 -05:00
Jeffrey Walton 07209942a4
Clear unused variable warnings on iOS 2018-12-01 11:25:36 -05:00
Jeffrey Walton a49e2ee2e7
Clear unused variable warnings on iOS 2018-12-01 11:25:18 -05:00
Jeffrey Walton b8bf4540ff
Fix simulator SDK 2018-12-01 10:50:32 -05:00
Jeffrey Walton 42de69d883
Update ARM recipes 2018-12-01 10:42:20 -05:00
Jeffrey Walton d9288fa870
Add additional ARM test programs
The SHA512 and SHA3 programs need fixing, but they are stubbed out
2018-12-01 10:33:04 -05:00
Jeffrey Walton 8ae7e45cc1
Initialize ARM test program variables 2018-12-01 09:38:54 -05:00
Jeffrey Walton 3b6ef04973
Initialize ARM test program variables 2018-12-01 09:37:23 -05:00
Jeffrey Walton 9e5ba86d7b
Fix Macports build on old hardware
We needed to detect MacPorts earlier so the flags are used in TCXXFLAGS
2018-12-01 06:04:45 -05:00
Jeffrey Walton cecd2fd66c
Remove language dependent BAD_RESULT variable from Makefile 2018-12-01 04:02:15 -05:00
Jeffrey Walton 41d4fcecbd
Fix typo 2018-12-01 03:55:39 -05:00
Jeffrey Walton 06c0c27e10
Update test programs for x86 and ARM (GH #741) 2018-12-01 03:16:54 -05:00
Jeffrey Walton 28aa02b860
Clear SunCC warning on extra ';' 2018-12-01 02:44:21 -05:00
Jeffrey Walton 6028a6921a
Fix SIGILL in TestDARN() function
I thought this was due to trying to call the darn instruction even though g_hasDARN == false on Power8. However, the problem turned out to be a Power9 load was used when DARN class threw a DARN_Err.
2018-11-30 09:12:35 -05:00
Jeffrey Walton 3e909c13d4
Add IBM XLC init priority support 2018-11-30 08:23:35 -05:00
Jeffrey Walton 52613240ae
Update documentation 2018-11-30 08:22:30 -05:00
Jeffrey Walton af7cdcdbec
Update documentation 2018-11-30 05:57:02 -05:00
Jeffrey Walton b87ef5d5cf
Update documentation 2018-11-30 05:48:41 -05:00
Jeffrey Walton fd5e35fcb6
Fix SIGILL on Linux when using XLC for DARN 2018-11-30 05:28:44 -05:00
Jeffrey Walton 8fba667250
Initialize Intel intrinsic variables 2018-11-28 23:44:03 -05:00
Jeffrey Walton f07f01f415
Add Power9 Random Number Generator support (GH #747, PR #748)
This adds the missing changes to the Windows source files
2018-11-28 21:51:39 -05:00
Jeffrey Walton 603d37b28b
Fix type for XLC features ladder 2018-11-28 21:35:07 -05:00
Jeffrey Walton 5d9ecc2b2e
Align GNUmakefile with Autotools and CMake 2018-11-28 19:58:58 -05:00
Jeffrey Walton ee5b0562b9
Make temporary buffer a SecBlock for zeroization 2018-11-27 22:59:41 -05:00
Jeffrey Walton 09bda53fc0
Fix PowerMac compile on G4's and G5's 2018-11-27 21:17:47 -05:00
Jeffrey Walton 5685b0fdc4
Guard GCC_DARN_ASM_AVAILABLE on GCC 4.0
The GCC inline assembler is available at GCC 3.2, but we check for 4.0 for expediency
2018-11-27 20:47:00 -05:00
Jeffrey Walton 7a9970f02e
Update comments and cpu feature test 2018-11-27 06:34:44 -05:00
Jeffrey Walton d41085e907
Update documentation 2018-11-27 06:08:51 -05:00
Jeffrey Walton 9ddd6dc93c
Fix CPU_ProbeDARN test
The DARN probe used 64-bit version of the instruction. I think it would have been OK  32-bit binaries, but the 32-bit version is always safe.
2018-11-27 04:46:51 -05:00