Commit Graph

833 Commits (3caada0a9eb506bfbd54d46517d646b43a00882b)

Author SHA1 Message Date
Jeffrey Walton 3caada0a9e Switch to static local/accessor pattern to avoid initialization order issues amoung translation units 2015-07-31 03:40:43 -04:00
Jeffrey Walton b27ca38ad7 fat libraries → fat binaries 2015-07-31 03:05:07 -04:00
Jeffrey Walton 2a09da77d6 Change _MSC_VER to 2300 (sometime around VS2019) for CRYPTOPP_CXX14. Its just a guess that won't collide in the near future... 2015-07-31 02:14:00 -04:00
Jeffrey Walton 9fd44748c1 Added define for CRYPTOPP_CXX14 so we can pick up operator "" and small string optimizations (SSO) 2015-07-31 02:11:32 -04:00
Jeffrey Walton bef0e79882 Removed USING_NAMESPACE(std). Removed unneeded headers. Added minimum headers. Added "-Wunused-parameter" to warning ignore list due to argc and argv[] 2015-07-31 01:48:18 -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 e9c086aaac Added assert. Thanks to Jean-Pierre Münch for the suggestion 2015-07-30 18:58:11 -04:00
Jeffrey Walton da68ad21a2 Removed USING_NAMESPACE(std). Changed hex → std::hex, etc (not sure how these six escaped the first time)... 2015-07-30 17:46:18 -04:00
Jeffrey Walton 22c3e41133 Removed USING_NAMESPACE(std). Changed cout → std::cout, cerr → std::cerr, ... 2015-07-30 17:35:58 -04:00
Jeffrey Walton 2799132fd7 Added fipsalgt.cpp to list of Windows sources to be filtered. Its literally empty (everything is commented out) 2015-07-30 17:30:10 -04:00
Jeffrey Walton 616a772ecc Added *.user files to list of artifacts to clean 2015-07-30 16:31:43 -04:00
Jeffrey Walton cfec803be8 Added trap.h and hkdf.h to DSP project files 2015-07-30 16:29:07 -04:00
Jeffrey Walton 52b7fbbca6 Template type aliases compiled under Visual Studio 2015 (v19.00); and not VS2010 or VS2012. We have a winner... 2015-07-30 15:53:01 -04:00
Jeffrey Walton c7e5bebcf2 Fixe compiler error under MinGW due to typedef'ing ssize_t. Cygwin OK 2015-07-30 14:38:54 -04:00
Jeffrey Walton efaaea4a90 Whitespace checkin 2015-07-30 14:33:17 -04:00
Jeffrey Walton 458d582ab1 Added typedef for missing ssize_t on Windows. We used the same definitions Windows provided for the datatypes on MSDN, so it should not cause compiler problems (at least under Windows compilers) 2015-07-30 14:26:17 -04:00
Jeffrey Walton c9759f4ca1 Updated information under "Building the Library". Added info on C++11 and LLVM's libc++ 2015-07-30 14:03:28 -04:00
Jeffrey Walton 21c4db07d9 Added validat0.cpp to Windows and Borland project files 2015-07-30 13:52:11 -04:00
Jeffrey Walton 17fd66f2ff Visual Studio 2010 (v16.00) does not accept the template type alias. Bump to VS2012 (v17.00). Lather, rinse, repeat until we determine when... 2015-07-30 13:43:55 -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 77206baf56 Whitespace checkin 2015-07-30 13:07:33 -04:00
Jeffrey Walton 7ad12ab5b0 Cleared auto_ptr deprecation warning with C++11 under Debian 8/i686 2015-07-30 12:07:26 -04:00
Jeffrey Walton a8ca289b00 Cleared "signed/unsigned" warning on Debian 8/i686. ROUNDS was already unsigned; suspect this was a compiler or port issue 2015-07-30 12:00:25 -04:00
Jeffrey Walton 4d8ac2db7c Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11 2015-07-30 11:25:24 -04:00
Jeffrey Walton 8c63032865 Cleared "name defined in alias declaration must be an identifier" error under LLVM's libc++ and C++11 2015-07-30 11:24:41 -04:00
Jeffrey Walton 60291122ae Cleared "no member named 'unique_ptr' in namespace 'std'" error under C++11 on OS X 2015-07-30 11:15:51 -04:00
Jeffrey Walton e5171450e2 Fixed validation failure due to collision of type sizes between int and long 2015-07-30 10:57:25 -04:00
Jeffrey Walton 5a35640912 Added validat0.cpp and moved bit tests into it. Provided tests for SafeConvert. Removed "using namespace std" from test sources (auto_ptr causes a collision becuase std:: provides it in C++03, but CryptoPP:: provides it in C++11 2015-07-30 10:36:49 -04:00
Jeffrey Walton 264018e8ec Suppressed "sign comparison" warning under GCC and Clang 2015-07-30 09:14:43 -04:00
Jeffrey Walton 33e6a62c5e Reverted to previous SafeConvert code. Its not as efficient as it could be, but it is darn sure correct. Self-tests for the verification to follow 2015-07-30 08:38:28 -04:00
Jeffrey Walton e507a4136e Fixed "signed/unsigned" conversion warning when "-DDEBUG" defined 2015-07-30 03:51:17 -04:00
Jeffrey Walton f61577af9d Included "integer.h" in source files with Integer dependencies so make would rebuild stale object files 2015-07-30 03:30:27 -04:00
Jeffrey Walton 3ad53d9b68 Added stdcpp.h header 2015-07-30 02:39:26 -04:00
Jeffrey Walton 9d579ad208 Added CRYPTOPP_ASSERT to SafeConvert result because FileSink::Put2 does not throw. Maybe Put2 should work with std::streamsize::max() size blocks 2015-07-30 02:37:59 -04:00
Jeffrey Walton 978b7149f2 Removed USING_NAMESPACE(std). Switch cout and friends to use std::cout 2015-07-29 23:12:44 -04:00
Jeffrey Walton 414b673706 Added test for T1 is signed 2015-07-29 22:37:36 -04:00
Jeffrey Walton d41009f1dc Added script to clean Visual Studio artifacts 2015-07-29 13:45:54 -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 becea0ef8d Cleared "'register' storage class specifier is deprecated" warning under C++11 2015-07-29 11:22:33 -04:00
Jeffrey Walton 2936447d05 Updated IntToString and SafeConvert to squash the "signed/unsigned" warnings once and for all. Removed the specializations that caused more trouble than they were worth. (If all platforms offered size_t and ssizeT the same way, specializations would have been the preferred solution 2015-07-29 06:33:41 -04:00
Jeffrey Walton ffc5c11555 Improved comment on xorbuff and GCC's selection of vmovdqa 2015-07-28 20:36:22 -04:00
Jeffrey Walton 0b8ef06e08 Updated intstall.txt to use'egrep "(error|FAILED)\' 2015-07-28 19:07:23 -04:00
Jeffrey Walton 48187e4fe6 Updated intstall.txt to include a Build section and Install section 2015-07-28 18:48:47 -04:00
Jeffrey Walton e79ae73295 Finished alloca cleanup under the BSDs 2015-07-28 18:18:56 -04:00
Jeffrey Walton 697ccb452b Issue 19 and comments on the 05076dbd 2015-07-28 18:00:19 -04:00
Jeffrey Walton cffba26fa1 Fixed compiler error under OpenBSD for missing "alloca" 2015-07-27 19:43:43 -04:00
Jeffrey Walton 185a2c8e83 Used pragmas to disable the deprecated warnings under Visual Studio rather than _WINSOCK_DEPRECATED_NO_WARNINGS. Using _WINSOCK_DEPRECATED_NO_WARNINGS could cross-pollintae out of the library and into user code 2015-07-27 19:05:53 -04:00
Jeffrey Walton 383d9636a8 Defined out the stuff that cross-polinated during testing 2015-07-27 19:03:14 -04:00
Jeffrey Walton 05076dbdea _WINSOCK_DEPRECATED_NO_WARNINGS was defined before including Winsock gear to avoid the warnings and the rewrite. Being tracked at GitHub, Issue 19, https://github.com/weidai11/cryptopp/issues/19 2015-07-27 18:05:08 -04:00