Commit Graph

  • 8134f2cd50 Remove implementation of ResizeBuffer() from headers Zireael 2015-10-26 05:11:59 +0300
  • 844daf0eab Updated SHA3 padding to NIST final FIPS 202 spec Daniel Collins 2015-10-15 10:41:31 -0700
  • 1d5bcc08fb Fixes the warning on IntToString about comparison of unsigned and signed values, when boost::uint32_t and boost::uint64_t are used with the function Alberto Curro 2015-10-01 14:35:45 +0100
  • aff5105569 Removed "include <assert.h>" from files. Its now handled by "trap.h" Jeffrey Walton 2015-08-03 19:21:57 -0400
  • 973e48744b Removed guard on memcpy_s call to memcpy. All the Undefined Behavior has been removed. The CRYPTOPP_ASSERT remains to guard the use of the functions, as does Clang/GCC Undefined Behavior sanitizer Jeffrey Walton 2015-08-03 19:20:27 -0400
  • d96e0a3a19 Completed cutover to unscoped auto_ptr (which will use Crypto++'s namespace version) Jeffrey Walton 2015-08-03 19:18:17 -0400
  • 09b5d2f5dd Switched to DebugBreak() for Windows machines to snap the debugger and allow a continue Jeffrey Walton 2015-08-03 19:17:42 -0400
  • 1e103c0e5b Completed cutover to unscoped auto_ptr (which will use Crypto++'s namespace version) Jeffrey Walton 2015-08-03 19:11:23 -0400
  • 7e6c9438da Companion checkin to 572506de3d. Salsa and Sosemanuk can no longer reach into a SecBlock for and touch its private members Jeffrey Walton 2015-08-03 19:06:18 -0400
  • 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 Jeffrey Walton 2015-08-03 18:59:02 -0400
  • 57865b43ce Improved comment on use of __cplusplus macro Jeffrey Walton 2015-08-03 17:24:41 -0400
  • 651ba89176 Added CRYPTOPP_POSIX_ASSERT to config.h for those who want original Posix behavior of abort(). Additional cleanup of CRYPTOPP_CXX11 defines Jeffrey Walton 2015-08-03 17:14:55 -0400
  • 8bfb29740f Removed inline ASM for GCC. According to the GCC devs, the cast to volatile is all that's required Jeffrey Walton 2015-08-03 14:01:31 -0400
  • 69c6989e99 Cleared "-Wunused-but-set-variable" warning due to Bot_2 macro on x86_64 Jeffrey Walton 2015-08-03 13:14:44 -0400
  • fd300a1c90 Changed to dynamic_cast for GlobalRNG() Jeffrey Walton 2015-08-03 12:48:12 -0400
  • c8860d6fa9 Cleared "register is deprecated" warning on OS X with ancient versions of the C++ runtime library Jeffrey Walton 2015-08-03 04:33:57 -0400
  • 491e8dbd74 Whitespace checkin Jeffrey Walton 2015-08-03 04:03:23 -0400
  • 24047196b1 Cleaned up code to tame the optimizer in smart_ptr and member_ptr. It should work on all platforms Jeffrey Walton 2015-08-02 02:11:46 -0400
  • b44546be11 Revert "Hid inline assembly behind a macro". The MEMORY_BARRIER code is OK, and the use of inline assembly code is OK to tame the optimizer is OK; but its confusing because the interactions are not readily apparent. Jeffrey Walton 2015-08-01 19:00:31 -0400
  • 390d27b6cd Hid inline assembly behind a macro Jeffrey Walton 2015-08-01 18:02:03 -0400
  • ad352c64e0 Wrapped SecByteBlock and SecWordBlock in DOCUMENTED_TYPEDEF Jeffrey Walton 2015-08-01 16:53:33 -0400
  • 9b552d06d2 Changed cross-compile makefile to use "-Os" by default Jeffrey Walton 2015-07-31 15:33:08 -0400
  • 158bb2c94f Added "system" target that dumps a number of internal variables for testing and troubleshooting Jeffrey Walton 2015-07-31 14:24:49 -0400
  • c5b1adde3a Added "system" target that dumps a number of internal variables for testing and troubleshooting Jeffrey Walton 2015-07-31 14:00:24 -0400
  • b1085b7384 Changed Cygwin to use -O2 instead of -O3 with GCC 4.9 due to crash Jeffrey Walton 2015-07-31 10:22:15 -0400
  • 5f2c32af37 Cut-over to inline assembly to tame the optimizer Jeffrey Walton 2015-07-31 10:05:14 -0400
  • 79ec88f5a6 Fixed optimize string under GCC Jeffrey Walton 2015-07-31 09:52:23 -0400
  • d935fd80ba Partial cut-over to static local strings for DefaultChannel() and AadChannel(). Cout-over DEFAULT_CHANNEL and AAD_CHANNEL to use them behind the scenes Jeffrey Walton 2015-07-31 08:23:53 -0400
  • 8796c9e684 Removed IS_CENTOS feature test Jeffrey Walton 2015-07-31 08:09:59 -0400
  • 80b253c8d8 Removed IS_CENTOS feature test Jeffrey Walton 2015-07-31 08:09:32 -0400
  • cfb68699b0 Fix "error: bad value (native) for -march= switch" on CentOS 5 Jeffrey Walton 2015-07-31 06:32:11 -0400
  • b84cd9013a Supress "-Wmaybe-unitiialized" warning under GCC; guard to ensure it does not produce unknown pragma warning under Clang Jeffrey Walton 2015-07-31 04:44:28 -0400
  • 3caada0a9e Switch to static local/accessor pattern to avoid initialization order issues amoung translation units Jeffrey Walton 2015-07-31 03:40:43 -0400
  • b27ca38ad7 fat libraries → fat binaries Jeffrey Walton 2015-07-31 03:05:07 -0400
  • 2a09da77d6 Change _MSC_VER to 2300 (sometime around VS2019) for CRYPTOPP_CXX14. Its just a guess that won't collide in the near future... Jeffrey Walton 2015-07-31 02:14:00 -0400
  • 9fd44748c1 Added define for CRYPTOPP_CXX14 so we can pick up operator "" and small string optimizations (SSO) Jeffrey Walton 2015-07-31 02:11:32 -0400
  • bef0e79882 Removed USING_NAMESPACE(std). Removed unneeded headers. Added minimum headers. Added "-Wunused-parameter" to warning ignore list due to argc and argv[] Jeffrey Walton 2015-07-31 01:48:18 -0400
  • f7600dbbec Added Microsoft compilers under <utility> guard Jeffrey Walton 2015-07-31 01:14:31 -0400
  • 2d82901165 Added <utility> based on C++11 for R-values and std::move Jeffrey Walton 2015-07-31 00:31:16 -0400
  • e9c086aaac Added assert. Thanks to Jean-Pierre Münch for the suggestion Jeffrey Walton 2015-07-30 18:58:11 -0400
  • da68ad21a2 Removed USING_NAMESPACE(std). Changed hex → std::hex, etc (not sure how these six escaped the first time)... Jeffrey Walton 2015-07-30 17:46:18 -0400
  • 22c3e41133 Removed USING_NAMESPACE(std). Changed cout → std::cout, cerr → std::cerr, ... Jeffrey Walton 2015-07-30 17:35:58 -0400
  • 2799132fd7 Added fipsalgt.cpp to list of Windows sources to be filtered. Its literally empty (everything is commented out) Jeffrey Walton 2015-07-30 17:30:10 -0400
  • 616a772ecc Added *.user files to list of artifacts to clean Jeffrey Walton 2015-07-30 16:31:43 -0400
  • cfec803be8 Added trap.h and hkdf.h to DSP project files Jeffrey Walton 2015-07-30 16:29:07 -0400
  • 52b7fbbca6 Template type aliases compiled under Visual Studio 2015 (v19.00); and not VS2010 or VS2012. We have a winner... Jeffrey Walton 2015-07-30 15:53:01 -0400
  • c7e5bebcf2 Fixe compiler error under MinGW due to typedef'ing ssize_t. Cygwin OK Jeffrey Walton 2015-07-30 14:38:54 -0400
  • efaaea4a90 Whitespace checkin Jeffrey Walton 2015-07-30 14:33:17 -0400
  • 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) Jeffrey Walton 2015-07-30 14:26:17 -0400
  • c9759f4ca1 Updated information under "Building the Library". Added info on C++11 and LLVM's libc++ Jeffrey Walton 2015-07-30 14:03:28 -0400
  • 21c4db07d9 Added validat0.cpp to Windows and Borland project files Jeffrey Walton 2015-07-30 13:52:11 -0400
  • 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... Jeffrey Walton 2015-07-30 13:43:55 -0400
  • 8293570bd4 Added self-assignment guards or comment indicating why the check is not needed Jeffrey Walton 2015-07-30 13:24:37 -0400
  • 77206baf56 Whitespace checkin Jeffrey Walton 2015-07-30 13:07:33 -0400
  • 7ad12ab5b0 Cleared auto_ptr deprecation warning with C++11 under Debian 8/i686 Jeffrey Walton 2015-07-30 12:07:26 -0400
  • a8ca289b00 Cleared "signed/unsigned" warning on Debian 8/i686. ROUNDS was already unsigned; suspect this was a compiler or port issue Jeffrey Walton 2015-07-30 12:00:25 -0400
  • 4d8ac2db7c Cleared "reference to 'auto_ptr' is ambiguous" error under LLVM's libc++ and C++11 Jeffrey Walton 2015-07-30 11:25:24 -0400
  • 8c63032865 Cleared "name defined in alias declaration must be an identifier" error under LLVM's libc++ and C++11 Jeffrey Walton 2015-07-30 11:24:41 -0400
  • 60291122ae Cleared "no member named 'unique_ptr' in namespace 'std'" error under C++11 on OS X Jeffrey Walton 2015-07-30 11:15:51 -0400
  • e5171450e2 Fixed validation failure due to collision of type sizes between int and long Jeffrey Walton 2015-07-30 10:57:25 -0400
  • 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 Jeffrey Walton 2015-07-30 10:36:49 -0400
  • 264018e8ec Suppressed "sign comparison" warning under GCC and Clang Jeffrey Walton 2015-07-30 09:14:43 -0400
  • 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 Jeffrey Walton 2015-07-30 08:38:28 -0400
  • e507a4136e Fixed "signed/unsigned" conversion warning when "-DDEBUG" defined Jeffrey Walton 2015-07-30 03:51:17 -0400
  • f61577af9d Included "integer.h" in source files with Integer dependencies so make would rebuild stale object files Jeffrey Walton 2015-07-30 03:30:27 -0400
  • 3ad53d9b68 Added stdcpp.h header Jeffrey Walton 2015-07-30 02:39:26 -0400
  • 9d579ad208 Added CRYPTOPP_ASSERT to SafeConvert result because FileSink::Put2 does not throw. Maybe Put2 should work with std::streamsize::max() size blocks Jeffrey Walton 2015-07-30 02:37:59 -0400
  • 978b7149f2 Removed USING_NAMESPACE(std). Switch cout and friends to use std::cout Jeffrey Walton 2015-07-29 23:12:44 -0400
  • 414b673706 Added test for T1 is signed Jeffrey Walton 2015-07-29 22:37:36 -0400
  • d41009f1dc Added script to clean Visual Studio artifacts Jeffrey Walton 2015-07-29 13:45:54 -0400
  • 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 Jeffrey Walton 2015-07-29 13:37:52 -0400
  • becea0ef8d Cleared "'register' storage class specifier is deprecated" warning under C++11 Jeffrey Walton 2015-07-29 11:22:33 -0400
  • 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 Jeffrey Walton 2015-07-29 06:33:41 -0400
  • ffc5c11555 Improved comment on xorbuff and GCC's selection of vmovdqa Jeffrey Walton 2015-07-28 20:36:22 -0400
  • 0b8ef06e08 Updated intstall.txt to use'egrep "(error|FAILED)\' Jeffrey Walton 2015-07-28 19:07:23 -0400
  • 48187e4fe6 Updated intstall.txt to include a Build section and Install section Jeffrey Walton 2015-07-28 18:48:47 -0400
  • e79ae73295 Finished alloca cleanup under the BSDs Jeffrey Walton 2015-07-28 18:18:56 -0400
  • 697ccb452b Issue 19 and comments on the 05076dbd Jeffrey Walton 2015-07-28 18:00:19 -0400
  • cffba26fa1 Fixed compiler error under OpenBSD for missing "alloca" Jeffrey Walton 2015-07-27 19:43:43 -0400
  • 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 Jeffrey Walton 2015-07-27 19:05:53 -0400
  • 383d9636a8 Defined out the stuff that cross-polinated during testing Jeffrey Walton 2015-07-27 19:03:14 -0400
  • 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 Jeffrey Walton 2015-07-27 18:05:08 -0400
  • d76a974625 Added guard based on std::uncaught_exception so the class does not throw in an exception handler Jeffrey Walton 2015-07-27 17:26:45 -0400
  • 836cf237cf Fixed compile error due to MS using _MSC_VER rather than __cplusplus Jeffrey Walton 2015-07-27 16:46:25 -0400
  • 25cc4c2db1 Fixed compile error on MinGW due to including <alloca.h> Jeffrey Walton 2015-07-27 16:36:05 -0400
  • ab33799f5a Added missing <limits> for MinGW compile Jeffrey Walton 2015-07-27 16:18:43 -0400
  • 69afee37b0 Fixed compiler error due to reversing ifdef and ifdef for CRYPTOPP_UNIX_AVAILABLE Jeffrey Walton 2015-07-27 16:15:46 -0400
  • 6cf9b6e081 Updated comment on reason for the gyrations when including <memory> Jeffrey Walton 2015-07-27 16:10:20 -0400
  • 03f36f8655 Placed guards on <alloca.> include Jeffrey Walton 2015-07-27 16:07:46 -0400
  • 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. Jeffrey Walton 2015-07-27 16:01:55 -0400
  • 418dd2a870 Fixed #error left in header that was used for testing Jeffrey Walton 2015-07-27 14:44:55 -0400
  • 8dd3a77e11 Fixed compiler error " error: missing binary operator before token 'defined'" Jeffrey Walton 2015-07-27 14:43:18 -0400
  • 23d28aa123 Fixed complier error "error: missing ')' after 'defined'" Jeffrey Walton 2015-07-27 14:41:13 -0400
  • c42947e19b Rearranged includes for consistency after testing Jeffrey Walton 2015-07-27 13:03:18 -0400
  • efcc05e615 Fixed compiler error "exception specification in declaration does not match previous declaration" under Clang Jeffrey Walton 2015-07-27 12:45:22 -0400
  • 5eff653a54 Added guard and specialization for APple with and without "-std=c++11" Jeffrey Walton 2015-07-27 12:40:06 -0400
  • e40ff65269 Fixed spelling error: __cpluplus → __cplusplus Jeffrey Walton 2015-07-27 09:40:36 -0400
  • 6b2129afb3 Added "include <alloca.h>" due to compile failure on Cygwin Jeffrey Walton 2015-07-27 02:06:11 -0400
  • 69098d8cf2 Added "include <cryptlib.h>" due to Cygwin not picking up the CRYPTOPP_CXX11 define Jeffrey Walton 2015-07-27 01:35:45 -0400
  • 66ff5e14f1 Improved GCC test by adding "__GNUC__ >= 5" Jeffrey Walton 2015-07-27 01:32:10 -0400