Jeffrey Walton
f19e97ad5c
Removed unneeded WANTED_CONFIG
2016-09-18 20:44:24 -04:00
Jeffrey Walton
ae3342fddc
Moves <ossig.h> include into Linux and Unix section
2016-09-18 20:43:00 -04:00
Jeffrey Walton
c88f09dad8
Updated comments
2016-09-18 17:55:23 -04:00
Jeffrey Walton
d689c11b2d
Fix compile under SunCC 5.11-5.13 (Issue 285)
2016-09-18 17:29:32 -04:00
Jeffrey Walton
f57c4dced5
Moved config.h → config.compat; moved config.recommend → config.h
...
Also see http://groups.google.com/forum/#\!topic/cryptopp-users/bWcRw1XgJ_Q
2016-09-18 12:36:50 -04:00
Jeffrey Walton
33a59b8bd1
Reference 226 and 284 bugs in workaround since the gyrations are not readily apparent
2016-09-18 11:57:57 -04:00
Jeffrey Walton
2d0e388d9a
Fix SunCC 12.5 failed validation in gcm.cpp (Issue 284)
2016-09-18 11:45:12 -04:00
Jeffrey Walton
4fb75a8f4d
Fix SunCC 12.3 - 12.5 crash in gcm.cpp
...
/opt/developerstudio12.5/bin/CC -DNDEBUG -g2 -O2 -m64 -native -KPIC -template=no%extdef -c gcm.cpp
assertion failed in function pr_post_process_node() @ preopt.c:3868
assert(nd_eq_(scope_first_stmt_(node), first_s))
CC: ube failed for gcm.cpp
2016-09-18 10:26:57 -04:00
Jeffrey Walton
8f33054545
Revert "Fix SunCC 12.3 - 12.5 crash in gcm.cpp"
...
This reverts commit 519b41e47e . Additional testing cruft was included in the commit.
2016-09-18 10:23:10 -04:00
Jeffrey Walton
519b41e47e
Fix SunCC 12.3 - 12.5 crash in gcm.cpp
...
$ /opt/developerstudio12.5/bin/CC -DNDEBUG -g2 -O2 -D__SSE2__ -D__SSE3__ -D__SSSE3__ -xarch=ssse3 -Wno-deprecated-declarations -m64 -native -KPIC -template=no%extdef -c gcm.cpp
assertion failed in function pr_post_process_node() @ preopt.c:3868
assert(nd_eq_(scope_first_stmt_(node), first_s))
CC: ube failed for gcm.cpp
2016-09-18 10:21:59 -04:00
Jeffrey Walton
bad74bb3ab
Add test for mismatched capabiliities between libcryptopp.a and cryptest.exe (Issue 283)
2016-09-18 09:28:47 -04:00
Jeffrey Walton
73bc1a0e38
Add information on static linking and risk with dynamic runtime linking
2016-09-18 08:52:10 -04:00
Jeffrey Walton
002509a9a9
Updated comments
2016-09-18 03:53:57 -04:00
Jeffrey Walton
0d434fb419
Updated failure message
2016-09-18 03:03:07 -04:00
Jeffrey Walton
85241c94a8
Updated IS_X86 detection code
2016-09-18 02:46:36 -04:00
Jeffrey Walton
f041382c55
Add tests with -march=i686 and -march=x86-64
...
-march=native effectively tests a maximum, while the two new tests verify the minimum
2016-09-18 01:00:23 -04:00
Jeffrey Walton
d6d2307b78
Fix test for assert, std::min and std::max
...
OS X's grep is not matching them, but egrep matches them
2016-09-18 00:39:56 -04:00
Jeffrey Walton
7de39aa18f
Updated comments in cryptest.nmake
2016-09-17 23:21:34 -04:00
Jeffrey Walton
587a9956fc
Added test for use of std::min and std::max
...
This is due to Windows.h and NOMINMAX. Linux test fine, while Windows breaks. We need to use either the library's 'STDMIN(a,b)' or '(std::min)(a, b);'
2016-09-17 22:08:12 -04:00
Jeffrey Walton
6930e27842
Add Tweak name for tweakable block ciphers
2016-09-17 20:16:03 -04:00
Jeffrey Walton
7620976826
Guard inclusion of <intrin.h> with VS2005 and above
2016-09-17 18:42:35 -04:00
Jeffrey Walton
a0bc85cfc8
Add trap.h and ossig.h to vs2005.zip
2016-09-17 18:41:36 -04:00
Jeffrey Walton
334514d585
Add trap.h and ossig.h to vc60.zip
2016-09-17 18:12:45 -04:00
Jeffrey Walton
01b4ada148
Merge dev-branch 'trap' into 'master'
2016-09-17 17:21:53 -04:00
Jeffrey Walton
262e95fd84
Add VS2010 *.filters files to list of files converted to CRLF endings
2016-09-17 17:20:24 -04:00
Jeffrey Walton
b7a08f1110
Use __debugbreak rather than DebugBreak on Windows
...
Also see "How to get a declaration for DebugBreak without including Windows.h?" (http://stackoverflow.com/q/39551229 ) on Stack Overflow
2016-09-17 17:17:28 -04:00
Jeffrey Walton
dc09f7446c
Remove use of NDEBUG in dll.h
2016-09-17 14:40:23 -04:00
Jeffrey Walton
eb107a6d6f
Update copyright message
2016-09-17 14:39:32 -04:00
Jeffrey Walton
c207012123
Add cryptest.sh tests for includio of <assert.h> and <cassert>; and use of NDEBUG or assert\(...\)
2016-09-17 14:38:52 -04:00
Jeffrey Walton
3815b908ab
Add ossig.h. Move SignalHandler to ossig.h
...
This avoids a circular dependency between misc.h and trap.h. It also allows us to logically segregate and group code to replace C++ handlers, like set_terminate
2016-09-17 12:23:02 -04:00
Jeffrey Walton
91ca6c117d
Change from NDEBUG to CRYPTOPP_DEBUG in source files to ensure all debug behavior pivots on CRYPTOPP_DEBUG, and not NDEBUG (Issue 277, CVE-2016-7420)
2016-09-16 14:51:48 -04:00
Jeffrey Walton
9ea63e7b28
Merge pull request #282 from mouse07410/master
...
$%^@! 448 bits is 56 bytes, not 58!!! Fixing that oversight.
2016-09-16 13:16:15 -04:00
Uri Blumenthal
8ad82f3f66
$%^@! 448 bits is 56 bytes, not 58!!! Fixing that oversight.
2016-09-16 12:36:05 -04:00
Jeffrey Walton
1bf805cd3e
Merge pull request #281 from mouse07410/master
...
Restore MARS capability to use 448-bit keys
2016-09-16 12:23:15 -04:00
Uri Blumenthal
58c33810e7
Restore MARS capability to use 448-bit keys
2016-09-16 12:19:12 -04:00
Jeffrey Walton
6847978f0a
Merge 'master' into 'trap'
2016-09-16 11:28:23 -04:00
Jeffrey Walton
399a1546de
Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
...
trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
2016-09-16 11:27:15 -04:00
DevJPM
8779c8cd78
fixed Keccak and SHA3 to support HMAC
...
added the blocksize constant and member functions to Keccak and SHA3
(and all derivatives) as well as some compile-time-checks
2016-09-16 16:31:41 +02:00
Jeffrey Walton
69f3d9483e
Fixed gcm.cpp compile under MSC/Visual Studio
2016-09-16 08:09:04 -04:00
Jeffrey Walton
fca5fbb361
Add information on C++ Static Initialization Ordering
2016-09-15 16:11:34 -04:00
Jeffrey Walton
e2befd5ee3
Added section "Alternate Build Systems". Removed section "DataDir Patch"
2016-09-15 15:40:05 -04:00
Jeffrey Walton
553049ba29
Update README and INSTALL with -DNDEBUG requirement for production software (thanks FW)
2016-09-15 15:18:29 -04:00
Jeffrey Walton
df40b6224a
Restore CMAKE_VERBOSE_MAKEFILE to its original state
2016-09-15 12:04:49 -04:00
Jeffrey Walton
e1fa9b26a8
Remove CMake related files from ZIP
2016-09-15 10:54:32 -04:00
Jeffrey Walton
f2e5149319
Cleared "Types cannot be declared in anonymous union" (Issue 274)
...
Thanks to Martin Bonner at http://stackoverflow.com/a/39507183
2016-09-15 09:38:40 -04:00
Jeffrey Walton
34c1837647
Use SET(CMAKE_POSITION_INDEPENDENT_CODE 1)
2016-09-15 05:16:01 -04:00
Jeffrey Walton
722afc4733
Improve Cmake cross-ompile support.
...
Add CRYPTOPP_CROSS_COMPILE variable. Guard host uname calls on CROSS_COMPILE. Set CMAKE_CXX_LINK_FLAGS to CMAKE_CXX_FLAGS. Change to SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} <option>") pattern.
2016-09-15 02:20:15 -04:00
Jeffrey Walton
677a83501c
Removed -erroff=wvarhidemem -erroff=voidretw for SunCC after warning cleanup
...
Also see Commits b69d904499 , 92ed8454c7 , 7c3345585c , and 875852fcbc
2016-09-14 21:31:10 -04:00
Jeffrey Walton
b69d904499
Cleared SunCC warning "key hides GOST::Base::key"
2016-09-14 21:13:22 -04:00
Jeffrey Walton
92ed8454c7
Cleared SunCC warning "c0 hides GF2NT::c0"
2016-09-14 21:04:00 -04:00