Commit Graph

46 Commits

Author SHA1 Message Date
Jeffrey Walton
47435f7d72
Guard use of <cstddef> for Microsoft compilers (GH #781) 2019-02-04 07:18:51 -05:00
Jeffrey Walton
1e8ac49b49
Guard use of _debug_memset with __DEBUG_ALLOC__
This is engaged with IBM XLC's -qheapdebug option
2018-11-21 21:04:20 -05:00
Jeffrey Walton
e26b1a0b2a
Add debug heap support on AIX with IBM XLC 2018-11-21 20:19:06 -05:00
Jeffrey Walton
baff390f28
Fix older Solaris and SunCC compile
Found during testing on OpenCSW compile farm on Solaris 9 (host unstable9s)
2018-07-21 06:15:40 -04:00
Jeffrey Walton
3958fad099
Add sbyte, sword16, sword32 and sword64 (GH #608, GH #609)
Visual Studio 2008 kind of forced out hand with this. VS2008 lacks <stdint.h> and <cstdint> and it caused compile problems in NaCl gear. We were being a tad bit lazy by relying on int8_t, int32_t and int64_t, but the compiler errors made us act
2018-03-27 20:47:20 -04:00
Jeffrey Walton
506f90bcc8
Fix VS2010 and "error C2065: uint32_t: undeclared identifier" (GH #608)
We could fix aria.cpp by using word32. However, NaCl gear uses int64_t and we don't have a typedef setup for it. So we will need <cstdint> later for NaCl
2018-03-27 19:18:44 -04:00
Jeffrey Walton
675575d960
Update documentation 2018-01-23 17:47:19 -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
642cf3aa74
Add "stdcpp.h" to bench1.cpp and bench2.cpp (GH #520)
This is the first of possibly two or three for Borland compilers. We have to be careful because its very easy to break something due to math overloads with other compilers like SunCC or XL/C
2017-10-12 21:52:23 -04:00
Jeffrey Walton
a72fdedfa7
Remove unneeded alloca header 2017-03-08 15:47:59 -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
e09d8a2491
Fix Cygwin compile due to missing <signal.h> 2016-10-01 22:12:08 -04:00
Jeffrey Walton
625a6dd09a
Clear warnings under Visual Studio 2012 2016-10-01 12:04:57 -04:00
Jeffrey Walton
d40c7fb56b
Fix compile under Visual Studio 2008 2016-10-01 05:17:02 -04:00
Jeffrey Walton
395b163450
Fix compile under Visual Studio 2003 2016-10-01 04:42:42 -04:00
Jeffrey Walton
4c1b5472cc Cutover to SecByteBlock member for AES (Issue 302, CVE-2016-7544) 2016-09-30 01:09:21 -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
Jeffrey Walton
e961c2da5b Merge Atomics branch into Master 2016-06-06 22:08:04 -04:00
Jeffrey Walton
d294b4290b Add changes for Windows Sotre that went missing with my clumsy Git skills 2016-05-09 03:07:57 -04:00
a.navrotskiy
ab0f2120f6 Fix Visual Studio compilation with _HAS_EXCEPTIONS=0 (more concrete define and better workaround place) 2016-04-06 10:42:04 +03:00
a.navrotskiy
9b5894be39 Fix Visual Studio compilation with _HAS_EXCEPTIONS=0
Bug information: https://connect.microsoft.com/VisualStudio/feedback/details/1600701/type-info-does-not-compile-with-has-exceptions-0

For example:
```
C:\Work\github\cryptopp>cl /c /Tp cryptlib.h /Focryptlib.h.obj /D_HAS_EXCEPTIONS=0
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

sha.h
c:\work\github\cryptopp\cryptlib.h(292) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(298) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(302) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(305) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(306) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(392) : error C2039: 'type_info' : is not a member of 'std'
c:\work\github\cryptopp\cryptlib.h(437) : error C2039: 'type_info' : is not a member of 'std'
```
2016-04-05 12:15:34 +03: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
aff5105569 Removed "include <assert.h>" from files. Its now handled by "trap.h" 2015-08-03 19:21:57 -04:00
Jeffrey Walton
f7600dbbec Added Microsoft compilers under <utility> guard 2015-07-31 01:14:31 -04:00
Jeffrey Walton
2d82901165 Added <utility> based on C++11 for R-values and std::move 2015-07-31 00:31:16 -04:00
Jeffrey Walton
ae0984b4b1 Cleaned up tests for OS X, TR1 names spaces and ancient versus modern libstdc++ and libc++. Thanks to Jonathan Wakely for devising the clever test 2015-07-29 13:37:52 -04:00
Jeffrey Walton
e79ae73295 Finished alloca cleanup under the BSDs 2015-07-28 18:18:56 -04:00
Jeffrey Walton
cffba26fa1 Fixed compiler error under OpenBSD for missing "alloca" 2015-07-27 19:43:43 -04:00
Jeffrey Walton
836cf237cf Fixed compile error due to MS using _MSC_VER rather than __cplusplus 2015-07-27 16:46:25 -04:00
Jeffrey Walton
25cc4c2db1 Fixed compile error on MinGW due to including <alloca.h> 2015-07-27 16:36:05 -04:00
Jeffrey Walton
ab33799f5a Added missing <limits> for MinGW compile 2015-07-27 16:18:43 -04:00
Jeffrey Walton
69afee37b0 Fixed compiler error due to reversing ifdef and ifdef for CRYPTOPP_UNIX_AVAILABLE 2015-07-27 16:15:46 -04:00
Jeffrey Walton
6cf9b6e081 Updated comment on reason for the gyrations when including <memory> 2015-07-27 16:10:20 -04:00
Jeffrey Walton
03f36f8655 Placed guards on <alloca.> include 2015-07-27 16:07:46 -04:00
Jeffrey Walton
ef318d5423 Fixed compiler errors on Apple due to cross product of {C++03,C++11} x {libc++, libstdc++}. It included bringing in the correct <memory> in <stdcpp.h>, and then only including <stdcpp.h> when <memory> was needed. 2015-07-27 16:01:55 -04:00
Jeffrey Walton
9bf0eed0f6 Cleared crash with GCC 4.8 and above and -O3. In a nutshell, it was due to vectorization and alignment violations agains the vmovdqa instruction 2015-07-13 22:53:16 -04:00
weidai
9d42a6f6de fix compile with Sun CC on Linux 2010-08-08 08:13:09 +00:00
weidai
bc0806d50d fix build of dlltest project on MSVC 2008
fix compile on C++Builder 2010
2010-07-24 05:35:54 +00:00
weidai
9a892095a0 port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21 2010-07-05 11:14:14 +00:00
weidai
1315a7bc9a port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
change makefile to compile for both i386 and x86_64 on Darwin/Mac OS X
2010-07-05 01:15:14 +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
63e267686a remove <locale> (should save code size?) 2007-09-24 00:51:04 +00:00
weidai
5b2008101c misc changes 2003-07-18 04:35:30 +00:00
weidai
12157494b2 fix GCC compile 2003-07-11 19:16:35 +00:00
weidai
f278895908 create DLL version, fix GetNextIV() bug in CTR and OFB modes 2003-07-04 00:17:37 +00:00