Jeffrey Walton
a49cb0861b
Add SecBlock member to track number of elements to zeroize (Issue 346)
...
By default the member, named m_mark, is set to the maximum number of elements. If SetMark() is called, then m_mark is adjusted. Upon deallocation and zeroization, STDMIN(m_size, m_mark) elements are zeroized.
We wanted to use a high water mark, but we could not track the writes to the allocation. operator[] would have been OK, but ::memcpy would have been problematic
2017-01-28 13:23:50 -05:00
Jeffrey Walton
81b1a18063
Change file preamble to include "originally written by Wei Dai"
...
We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
2017-01-27 07:05:45 -05: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
Jeffrey Walton
0d66fd8f82
Fixed use of FixedSizeAlignedSecBlock and non-aligned allocator in validat1.cpp (Issue 256)
2016-09-09 06:33:31 -04:00
Jeffrey Walton
fea45591b2
Add constexpr to size_max() methods for C++11
2016-09-04 02:29:32 -04:00
Jeffrey Walton
f260be1f42
Updated documentation
2016-05-21 08:17:49 -04:00
Jeffrey Walton
2056421881
Updated documentation
2016-05-19 14:54:41 -04:00
Jeffrey Walton
1c8c16f9e8
Updated documentation
2016-05-19 14:37:50 -04:00
Jeffrey Walton
7c77f26c26
Update documentation
2016-02-29 10:22:06 -05:00
Jeffrey Walton
4b5677dcfa
Updated documentation
2016-02-01 17:41:13 -05:00
Jeffrey Walton
1f1fecce88
Cleared -Wcast-align (Issue 122)
2016-01-25 19:28:55 -05:00
Jeffrey Walton
2b7dba4fa6
Suppressed false positives on -Wcast-align warning
2016-01-14 19:08:56 -05:00
Jeffrey Walton
ade18f6329
Removed unneeded test for 0-sized SecBlock. Removed temporary SecBlock
2016-01-08 07:15:56 -05:00
Jeffrey Walton
81482d8348
Added test case for growing FixedSizeSecBlock. Fixed copy count during grow
2015-12-31 07:21:23 -05:00
Jeffrey Walton
13748582e5
Added "make coverage" recipe. Added additional SecBlock tests
2015-12-28 07:06:50 -05:00
Jeffrey Walton
605744d826
Fixed SecBlock append when "this == t", fixed assert, added validation test (Issue 92)
2015-12-28 00:11:52 -05:00
Jeffrey Walton
985172421a
Revert "Fixed SecBlock append when "this == t" (Issue 92)". It was an incomplete remediation.
...
This reverts commit 8b0f29a4f2
.
2015-12-27 21:29:22 -05:00
Jeffrey Walton
8b0f29a4f2
Fixed SecBlock append when "this == t" (Issue 92)
2015-12-27 21:28:23 -05:00
Jeffrey Walton
217ad8d721
Revert "Fixed append when "this == t" (Issue 92)". It was an incomplete remediation.
...
This reverts commit c16ce2530a
.
2015-12-27 21:25:45 -05:00
Jeffrey Walton
c16ce2530a
Fixed append when "this == t" (Issue 92)
2015-12-27 21:11:34 -05:00
Jeffrey Walton
49de6e2012
Updated documentation
2015-12-16 03:22:22 -05:00
Jeffrey Walton
89c324ad92
Fixed documentation on New(), CleanNew(), Grow() and CleanGrow()
2015-12-12 21:01:44 -05:00
Jeffrey Walton
298988a5b9
Crypto++ 5.6.3 check-in
2015-11-22 19:17:15 -05:00
Jeffrey Walton
6ac1e46a1f
Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup)
2015-11-18 15:32:28 -05:00
Jeffrey Walton
48809d4e85
CRYPTOPP 5.6.3 RC6 checkin
2015-11-05 01:59:46 -05:00
Jeffrey Walton
572506de3d
This patch (1) documents the interface, including when the underlying array is uninitialized versus set to 0; (2) adds move semantics; (3) makes its members private; (4) adds asserts for some sanity checks in Debug builds; (5) guards calls to memset and memcpy for NULL pointers and 0-sizes; (6) prefers initialization over assignment; and (7) switches to numeric_limits::max() for sizes
2015-08-03 18:59:02 -04:00
Jeffrey Walton
ad352c64e0
Wrapped SecByteBlock and SecWordBlock in DOCUMENTED_TYPEDEF
2015-08-01 16:53:33 -04:00
Jeffrey Walton
8293570bd4
Added self-assignment guards or comment indicating why the check is not needed
2015-07-30 13:24:37 -04:00
Jeffrey Walton
35b213c085
Cleared "unused parameter" warning with GCC 5.1 and -Wextra
2015-07-23 19:30:14 -04:00
weidai
a3a3ff3c86
fix for compiling with Clang from Marshall Clow
2011-01-07 01:30:24 +00:00
weidai
797192ea60
fix compile on Linux
2010-07-24 06:12:23 +00:00
weidai
57de1d522b
move memory allocation/deallocation for SecBlock into DLL
2010-07-24 05:33:58 +00:00
weidai
d60229a02a
fix possible race condition in Singleton::Ref()
...
tolerate double destruction of Singleton and g_nullNameValuePairs
fix #include of standard headers
2010-06-18 07:06:59 +00:00
weidai
40c436a7e5
add and use SecureWipeArray() to avoid compiler optimizing away memset() (reported by Paul Pelzl)
2009-05-01 18:49:10 +00:00
weidai
d6b4e54448
fix compile on MSVC 6
2009-03-13 02:55:23 +00:00
weidai
8ca6148ad5
add x86/x64 assembly for SHA-256,
...
add DEFAULT_CHANNEL and AAD_CHANNEL,
fix macChannel for AuthenticatedEncryptionFilter
2009-03-10 02:56:19 +00:00
weidai
d8a644fc4e
changes for 5.6:
...
- added AuthenticatedSymmetricCipher interface class and Filter wrappers
- added CCM, GCM (with SSE2 assembly), CMAC, and SEED
- improved AES speed on x86 and x64
- removed WORD64_AVAILABLE; compiler 64-bit int support is now required
2009-03-02 02:39:17 +00:00
weidai
3f30574ced
fixes for GCC 4.3.2 (reports from Chris Morgan and DiegoT)
2008-11-21 03:05:32 +00:00
weidai
8e944f75d5
fix compile for for STLport 5.1.3 and MSVC 6 SP5
2007-09-12 02:28:48 +00:00
weidai
1e3458766a
fix compile with Borland C++Builder 2007
2007-08-16 22:59:53 +00:00
weidai
d3626970a6
fix compile for QNX
2007-08-15 01:55:01 +00:00
weidai
42d92648b6
fix VC 6 compile
2007-05-05 19:03:05 +00:00
weidai
f018ac354a
fix compile on Turbo C++ 2006
2007-05-05 18:29:44 +00:00
weidai
d2510f30c7
fix compile for x64, DLL and VC 6
2007-05-04 15:24:09 +00:00
weidai
f031341343
reorganized aligned allocator
2007-04-16 00:22:35 +00:00
weidai
4afd858ae4
port to Borland C++Builder 2006
2006-12-14 11:41:39 +00:00
weidai
7965f459e4
fix warning on VC6
2006-04-13 03:37:26 +00:00
weidai
922fdeb150
fix MSVC 2005 warnings
2006-03-13 13:26:41 +00:00
weidai
1db8ea5084
port to MSVC .NET 2005 beta 2
2005-07-12 04:23:32 +00:00
weidai
b3924f2108
changes done for FIPS-140 lab code drop
2005-01-20 04:19:35 +00:00
weidai
d617e3d925
fix compile with -msse2 on systems without memalign()
2004-07-18 09:23:13 +00:00
weidai
7f2eb60bca
*** empty log message ***
2004-06-19 09:13:32 +00:00
weidai
f78fccb3cc
port to GCC 3.4
2004-06-19 08:28:09 +00:00
weidai
89862d1220
guard against potential integer overflow in allocators
2003-08-04 19:00:41 +00:00
weidai
30f44f9ef8
prevent problems when application and Crypto++ have different NDEBUG settings
2003-07-31 01:57:46 +00:00
weidai
f278895908
create DLL version, fix GetNextIV() bug in CTR and OFB modes
2003-07-04 00:17:37 +00:00
weidai
a28627a6a5
add script-driven testing
2002-12-06 22:02:46 +00:00
weidai
a3b6ece7ab
Initial revision
2002-10-04 17:31:41 +00:00