Jeffrey Walton
6f9f9e5177
Update documentation
2018-01-11 11:27:11 -05:00
Jeffrey Walton
29029c6a33
Update documentation
2018-01-11 11:21:49 -05:00
Jeffrey Walton
7a080c32c8
Fix C++03 compile
...
Whitespace check-in
2018-01-10 20:49:07 -05:00
Linmao Song
1823b9d9c4
Fix error in bits2octets: should use the base point's bit count, instead of the hash value's. Also add test case for GetRandom, with original data from RFC6979 ( #560 )
2018-01-10 20:18:15 -05:00
Jeffrey Walton
2c295b2454
Add topic on Side Channel leakage
2018-01-08 09:13:15 -05:00
Jeffrey Walton
5ae79afd89
Add CRYPTOPP_CXX11_LAMBDA for N2927 (v1.1) (GH #558 )
2018-01-07 21:35:12 -05:00
Jeffrey Walton
0e32a7f1e6
Fix "Internal compiler error: max number of generated reload insns ..." (GH #554 )
2018-01-07 10:53:15 -05:00
Jeffrey Walton
3360e97ad9
Add C++20 testing to cryptest.sh
...
This is initial testing support for N4713, "Working Draft, Standard for Programming Language C++". We know GCC uses -std=c++20 and -std=gnu++20, so we can start testing things
2018-01-06 05:00:24 -05:00
Jeffrey Walton
4f2c605209
Add Power4 unaligned Load and Store
2018-01-05 21:27:27 -05:00
Jeffrey Walton
bfc2b5f02d
Fix double leading "0x" prefix (GH #557 )
...
Thanks to John McCabe for reporting
2018-01-05 18:59:28 -05:00
Jeffrey Walton
9624f928f8
Fix missing SM2 methods in Windows DLL
...
This was not ready to be checked in. I think it cross-pollinated duing a checkin for documentation
2018-01-05 18:47:28 -05:00
Jeffrey Walton
9c80a706c8
Fix "impossible register constraint in ASM" (GH #554 )
...
Thanks to Eduardo Miravalls for reporting the issue
2018-01-02 10:51:16 -05:00
Jeffrey Walton
eaa8185e61
Clear GCC -Wreorder warnings
2018-01-02 10:34:06 -05:00
Jeffrey Walton
d6d53f2e9d
Add Power4 Vector Load, Store, Add and Xor
2018-01-02 08:13:42 -05:00
Jeffrey Walton
fac3a44a84
Move Altivec AdvancedProcessBlocks into adv-simd.h
2018-01-02 07:08:13 -05:00
Jeffrey Walton
fb0ecfde62
Clear clang-tidy warnings
...
This commit also tweaks the way Integer parses byte arrays. The modified routines are slightly faster. On a Core-i5 6400 the self tests are 0.1 to 0.2 seconds faster
2018-01-02 04:17:22 -05:00
Jeffrey Walton
1a7f19cdde
Use 'command -v' to test for ld.gold
2018-01-02 01:13:59 -05:00
Jeffrey Walton
58726498f1
Clear clang-tidy warnings
2018-01-02 00:15:34 -05:00
Jeffrey Walton
5f083d652e
Clear signed/unsigned warnings
2017-12-31 03:54:33 -05:00
Jeffrey Walton
ba98c2bfb9
Clear signed/unsigned warning in Debug
2017-12-31 02:24:16 -05:00
Jeffrey Walton
651563e6c2
Temporary fix for IBM XLC failed SM3 self tests (GH #553 )
2017-12-30 22:18:08 -05:00
Jeffrey Walton
8b7f21b07d
Update makefiles to use one call to $(CXX) -dumpmachine
2017-12-30 18:38:40 -05:00
Jeffrey Walton
f3618f4b7f
Fix IBM xlC compile
2017-12-30 18:37:56 -05:00
Tanzinul Islam
b4df31c7f9
Change ::log() to log() to work with C++Builder ( #552 )
...
As reported in #520 , C++Builder standard libraries don't have a `log()` function at global namespace. Change the invocations to unqualified name lookup, and apply a using-declaration to `std::log()` when compiling under C++Builder.
2017-12-30 15:16:27 -05:00
Jeffrey Walton
1699562581
Remove commented code
2017-12-28 19:25:45 -05:00
Jeffrey Walton
cd35346f70
Fix Solaris failed compile due to SHA with GCC (GH #551 )
2017-12-28 19:14:20 -05:00
Jeffrey Walton
3c6eb74cd7
Clear Coverity issue CID 186341
2017-12-28 01:29:31 -05:00
Jeffrey Walton
7b14ead0f3
Fix unaligned load for _mm_loaddup_pd with GCC and UBsan
...
This function was missed earlier. Unfortunately, it does not squash all of the unaligned load findings. I'm pretty sure it is a GCC problem
2017-12-28 01:16:17 -05:00
Jeffrey Walton
24883ca79f
Clear Coverity issue CID 186337
2017-12-27 00:43:00 -05:00
Jeffrey Walton
3b1f6827f5
Clear Coverity issue CID 186338
2017-12-27 00:40:24 -05:00
Jeffrey Walton
09f9d76631
Fix "cast from 'struct sockaddr*' to 'struct sockaddr_in*' increases required alignment" on OS X
2017-12-26 17:57:26 -05:00
Jeffrey Walton
0aa2ebbbf3
Clear signed/unsigned warnings with GCC and -Wall -Wextra
2017-12-26 16:59:32 -05:00
Jeffrey Walton
4d9c91b425
Fix missing define for MSVC
2017-12-26 15:07:28 -05:00
Jeffrey Walton
4904d0fc8d
Fix unaligned load for _mm_loaddup_pd with GCC and UBsan
2017-12-26 14:55:10 -05:00
Jeffrey Walton
3fff9e85df
Fix unaligned load for _mm_loaddup_pd with GCC and UBsan
2017-12-26 12:41:04 -05:00
Jeffrey Walton
ae445c0b0f
Clear signed/unsigned warnings with GCC and -Wall -Wextra
2017-12-26 11:48:11 -05:00
Jeffrey Walton
66da740ad3
Use M128_CAST and CONST_M128_CAST for Clang
...
Also see http://bugs.llvm.org/show_bug.cgi?id=20670
2017-12-26 11:20:18 -05:00
Jeffrey Walton
8e916e7bac
Use M128_CAST and CONST_M128_CAST for Clang
...
Also see http://bugs.llvm.org/show_bug.cgi?id=20670
2017-12-26 11:16:52 -05:00
Jeffrey Walton
bee2598ecd
Add <emsa2.h> to dll.cpp
2017-12-26 10:53:11 -05:00
Jeffrey Walton
b7133e7b3b
Fix Clang specialization and definition warnings (GH #300 , GH #533 )
...
Clang 3.8 and above generates lots of "'PKCS_DigestDecoration<SHA1>::decoration' required here, but no definition is available" warnings
2017-12-26 00:46:50 -05:00
Jeffrey Walton
c0a8dab984
Fix failed self test under Clang (GH #533 )
...
This may cause GH #300 , "Clang 3.9 and missing member definitions for template classes" or GH #294 , "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not...
2017-12-25 22:29:21 -05:00
Jeffrey Walton
4232cfd40b
Fix failed self test under Clang (GH #533 )
...
This may cause GH #300 , "Clang 3.9 and missing member definitions for template classes" or GH #294 , "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not...
2017-12-25 22:27:53 -05:00
Jeffrey Walton
b20a91f6b2
Update documentation
2017-12-24 21:07:18 -05:00
Jeffrey Walton
41da3fa7f1
Use ptrdiff_t cast in BlockTransformation (GH #549 )
2017-12-17 09:07:12 -05:00
Jeffrey Walton
d7a2e0e10c
Removed unneeded defines from ppc-simd.cpp
...
Whitespace check-in
2017-12-16 20:26:59 -05:00
Jeffrey Walton
19deccf3ba
Fix Clang 5.0 "runtime error: addition of unsigned offset to 0xXXXX overflowed to 0xYYYY" (GH #549 )
2017-12-16 18:18:53 -05:00
Jeffrey Walton
dc21de2483
Fix UBsan overflow finding
...
We were cating UBsan findings under Clang similar to "adv-simd.h:1138:26: runtime error: addition of unsigned offset to 0x000002d41410 overflowed to 0x000002d41400". The problem was CRYPTOPP_CONSTANT, which used an enum. The compiler is allowed to pick the underlying data type, and Clang was picking a signed type
2017-12-16 14:21:08 -05:00
zorun
c3a85caf52
Build fixes ( #547 )
...
* GNUmakefile-cross: Fix install target
The install target was not working: missing mkdir before copying files,
wrong dynamic library copied, missing ldconf.
The fix is mostly taken from the install target from GNUmakefile.
* Makefile: call 'ln -sf' instead of 'ln -sf -sf'
2017-12-16 09:07:23 -05:00
Jeffrey Walton
e56caf72ec
Fix unwanted Git mode change
2017-12-15 19:13:20 -05:00
Jeffrey Walton
7aa3377bbd
Prepare for changes to support latest NDK liek r16 (GH #546 )
2017-12-15 19:10:02 -05:00