Commit Graph

  • 8c7408bcd5
    Fix typo Jeffrey Walton 2017-04-03 20:27:49 -0400
  • a9f2518a2c
    Build: apply patch for GNU assembler errors to CMake anonimal 2017-03-29 07:01:04 +0000
  • c21023e2dc
    Removed 'aligned' makefile target. It was made default in 5.6.5 Jeffrey Walton 2017-03-28 23:49:58 -0400
  • c305e88127
    Fix runtime crash when CRYPTOPP_INIT_PRIORITY=0 Couple use of initialization priorities to no NO_OS_DEPENDENCE Add comments explaining what integer does, how it does it, and why we want to inprove on the Singleton pattern as a resource manager. Update documentation. Jeffrey Walton 2017-03-27 06:06:12 -0400
  • 30033fde77 Fix compilation under clang-cl. RaptorFactor 2017-03-25 23:31:45 -0700
  • 095740c1fe Fix linking of fipstest for MSVC targeting ARM (__crt_debugger_hook is not available). RaptorFactor 2017-03-25 23:14:12 -0700
  • 9b1d4c4c7d Fix compilation on Windows with /DUNICODE RaptorFactor 2017-03-25 23:08:10 -0700
  • 59a45c52dc Fix compilation with MSVC and /std:c++latest RaptorFactor 2017-03-25 23:06:36 -0700
  • 0e55f5ac7d
    Remove g_pAssignIntToInteger pointer, add CRYPTOPP_NO_ASSIGN_TO_INTEGER (Issue 389) This effectively decouples Integer and Public Key from the rest of the library. The change means a compile time define is used rather than a runtime pointer. It avoids the race with Issue 389. The Public Key algorithms will fail if you use them. For example, running the self tests with CRYPTOPP_NO_ASSIGN_TO_INTEGER in effect results in "CryptoPP::Exception caught: NameValuePairs: type mismatch for 'EquivalentTo', stored 'i', trying to retrieve 'N8CryptoPP7IntegerE'". The exception is expected, and the same happend when g_pAssignIntToInteger was present. Jeffrey Walton 2017-03-25 16:38:42 -0400
  • 6c50a99254
    Fix GNUmakefile to keep *.s files The distclean recipe deleted ASM files (*.s) rather than preprocessed ASM files (*.S). Leave them both now. Jeffrey Walton 2017-03-25 01:42:23 -0400
  • 661ddad1f2
    Fix Solaris compile due to StreamState "validate.h", line 155: Error: Overloading ambiguity between "std::ios::basic_ios(std::streambuf *)" and "std::ios::basic_ios(int)". Jeffrey Walton 2017-03-24 23:24:46 -0400
  • effe103641 Merge pull request #392 from janblome/issue391 Jeffrey Walton 2017-03-23 16:45:18 -0400
  • 6381faf277
    Rename rdrand.S to rdrand.s Jeffrey Walton 2017-03-23 16:05:30 -0400
  • 30263ee497 Rename rdrand.S to rdrand.s Jeffrey Walton 2017-03-23 15:39:43 -0400
  • d865cf9e62
    Fix OpenBSD 6.0 compile with GCC 4.9 (Issue 395) This check-in also enables the 64-bit RDRAND routines for X32. The changes were with held until they could be tested. The testing occurred with Issue 395 Jeffrey Walton 2017-03-22 17:26:25 -0400
  • 2ea91ba1b9
    Fix ARM compile under VS2013 Jeffrey Walton 2017-03-20 15:11:27 -0400
  • f502ee9218
    Simplify C++ dynamic object initialization Wrap DetectArmFeatures and DetectX86Features in InitializeCpu class Use init_priority for InitializeCpu Remove HAVE_GCC_CONSTRUCTOR1 and HAVE_GCC_CONSTRUCTOR0 Use init_seg(<name>) on Windows and explicitly insert at XCU segment Simplify logic for HAVE_GAS Remove special recipies for MACPORTS_GCC_COMPILER Move C++ static initializers into anonymous namespace when possible Add default NullNameValuePairs ctor for Clang Jeffrey Walton 2017-03-20 08:51:10 -0400
  • 3f128e4667 Improved sha256 performance on ppc64 by 4x Gustavo Serra Scalet 2017-03-20 08:56:23 -0300
  • 0c6510b0a5
    Guard string assignment Visual Studio 2005 fired an assert on the negative self tests because the SecByteBlock was 0-sized and returned a null pointer. Jeffrey Walton 2017-03-19 22:13:12 -0400
  • e7fa88083c
    Add DRBG, Poly1305 and SipHash to VS2005 project files Jeffrey Walton 2017-03-19 21:49:43 -0400
  • b0a151a8c0
    Fix VS2015/MSVC 19.00 compiler crash Jeffrey Walton 2017-03-19 10:10:56 -0400
  • a3d0da2e0e
    Fix VS2008/MSVC 14.00 compiler crash Jeffrey Walton 2017-03-19 06:57:51 -0400
  • 7fb6b3df74
    Fix compile under Visual Studio 2005/MSC 14.00 Previous testing occurred with Visual Studio 2005 SP 1, and it lacks some of the Safe C++/security enhanced functions. Jeffrey Walton 2017-03-18 16:56:14 -0400
  • 71afcadadb
    Clear Coverity STREAM_FORMAT_STATE (CID 177736, 177737, 177732) Yet another attempt to clear the stream state finding. Jeffrey Walton 2017-03-18 09:48:54 -0400
  • 6c6391bfda
    Clear Coverity CHECKED_RETURN (CID 177729) This was by design, but we cleared it because we want a dark and silent cockpit. Jeffrey Walton 2017-03-18 08:52:32 -0400
  • 13bcfbe249
    Add width field to StreamState Jeffrey Walton 2017-03-18 08:18:05 -0400
  • ad47231dc0
    Switch to std::ostream::char_type for StreamState Jeffrey Walton 2017-03-18 08:11:44 -0400
  • 342b4505fb
    Clear Coverity IDENTICAL_BRANCHES (CID 177731) This was by design, but we cleared it because we want a dark and silent cockpit. Jeffrey Walton 2017-03-18 07:18:30 -0400
  • bc6d48df59
    Cleared C4456 "declaration hides previous local declaration" for MSVC Jeffrey Walton 2017-03-18 07:06:59 -0400
  • 1bfb6be934
    Clear Coverity STREAM_FORMAT_STATE (CID 177735) This was a valid finding in the Test suite. The stream state findings are annoying. Jeffrey Walton 2017-03-18 05:08:04 -0400
  • e6817b73e5
    Cleared -Wunused-but-set-variable for GCC when using word128 Jeffrey Walton 2017-03-18 04:51:43 -0400
  • 8ad6782bec
    Clear Coverity UNINIT_CTOR (CID 177743, 177744) This was a valid finding, but the only way to get into the codepath was leaving the drbg unkeyed. Jeffrey Walton 2017-03-17 21:53:38 -0400
  • 08f9b3ff9e
    Clear Coverity UNINIT_CTOR (CID 177741) This was a valid finding, but the only way to get into the codepath leaving the hash unkeyed. Jeffrey Walton 2017-03-17 21:48:52 -0400
  • 690baaae97
    Clear Coverity UNINIT_CTOR (CID 177739) This was a valid finding, but the only way to get into the codepath leaving the hash unkeyed. Jeffrey Walton 2017-03-17 21:45:35 -0400
  • 80bbc834fe
    Clear Coverity UNINIT (CID 171239) It was a false positive, but dark and silent cockpits trump the uneeded initialization. The optimizer can remove it. Jeffrey Walton 2017-03-17 21:29:15 -0400
  • 301437e693
    Updated static initializers When MSVC init_seg or GCC init_priority is available, we don't need to use the Singleton. We only need to create a file scope class variable and place it in the segment for MSVC or provide the attribute for GCC. An additional upside is we cleared all the memory leaks that used to be reported by MSVC for debug builds. Jeffrey Walton 2017-03-17 20:47:32 -0400
  • bed31de2f6
    Whitespace check-in Jeffrey Walton 2017-03-17 18:31:40 -0400
  • c90a63196a
    Add StringWiden function StringWiden converts a narrow C-style string to a wide string. It serves the opposite role of StringNarrow function. The function is useful on Windows platforms where the OS favors wide functions with the UTF-16 character set. For example, the Data Proction API (DPAPI) allows a description, but its a wide character C-string. There is no narrwo version of the API. Jeffrey Walton 2017-03-17 04:57:38 -0400
  • e55560e1a2
    Update Coverity modeling file Jeffrey Walton 2017-03-15 15:46:23 -0400
  • 01cea29692
    Remove MSVC C4297 warning suppression (Issue 19) Jeffrey Walton 2017-03-15 08:08:43 -0400
  • fcdf293356 Remove unnecessary static from reference to singleton jan-dominik.blome 2017-03-15 12:19:31 +0100
  • 46c9cc725c
    Use C++03 Singleton on select Microsoft platforms (Issues 372, 373, 389, 391) We are back to the "... one object may end up being memory leaked" if faced with concurrent initialization Jeffrey Walton 2017-03-15 06:20:45 -0400
  • 354502d59d
    Change HAS_NASM to USE_NASM. The makefile does not etect it automatically Jeffrey Walton 2017-03-14 18:38:37 -0400
  • d8570a3435
    Avoid inlining LibraryVersion (Issue 371) Jeffrey Walton 2017-03-14 10:26:51 -0400
  • f9773d2961
    Updated RDRAND and RDSEED under NASM Port rdrand.S to Solaris Port rdrand.S to X32 The X32 port is responsible for the loop unwinding. The unwind generates a 32-byte block (X64 and X32) or 16-byte block (X86). On X32, it increases throughut by 100% (doubles it). On X86 and X64, throughput increases by about 6%. Anything over 4 machine words slows things down. Jeffrey Walton 2017-03-14 06:07:37 -0400
  • 4bcaabbe26
    Updated RDRAND and RDSEED under NASM Port rdrand.S to Cygwin and OS X Add DISABLE_NATIVE_ARCH to CmakefileList and GNUmakefile. It supresses the addition of -march=native. DISABLE_NATIVE_ARCH replaces DISABLE_CXXFLAGS_OPTIMIZATIONS in CmakefileList (the latter is now deprecated). Jeffrey Walton 2017-03-13 15:57:47 -0400
  • 9d9191cd6d Merge 8a2ad739aa into 2b4ec92dbe Marius Bakke 2017-03-12 20:01:48 +0000
  • 2b4ec92dbe
    Remove style from TABLE tag for benchmarks Jeffrey Walton 2017-03-12 09:30:16 -0400
  • c2efbae80a
    Add AES/OFB RNG benchmark Jeffrey Walton 2017-03-11 15:56:55 -0500
  • 76377f8219
    Whitespace checkin Jeffrey Walton 2017-03-11 15:55:44 -0500
  • ef7a6a2f4e
    Speedup Hash_DRBG and HMAC_DRBG Add benchmarks for SHA1 and SHA256 variants Hash_DRBG sped-up by about 2 MiB/s by using word128 and word64 in the initial update loop. It did not benefit other loops HMAC_DRBG sped-up by about 5 MiB/s by reworking variables, access and loop control Jeffrey Walton 2017-03-11 08:10:32 -0500
  • 006ca5f860
    Updated documentation Jeffrey Walton 2017-03-11 01:42:06 -0500
  • 75a379593d
    Updated documentation Jeffrey Walton 2017-03-10 03:14:43 -0500
  • a0bb490056
    Define _XOPEN_SOURCE for Cygwin/Newlib (Issue 315) Jeffrey Walton 2017-03-10 01:53:51 -0500
  • 86a45fd1ca
    Suppress unneeded output in Makefiles Jeffrey Walton 2017-03-09 04:01:36 -0500
  • 804feccfd9
    Add TimeToString function (Issue 386) This was supposed to be checked-in with ce38a411fc Jeffrey Walton 2017-03-08 17:15:16 -0500
  • ce38a411fc
    Add Random Number Generator benchmarks (Issue 386) Jeffrey Walton 2017-03-08 16:59:24 -0500
  • 2416c0eaf5
    Switch to <cmath> and standard math routines Jeffrey Walton 2017-03-08 15:55:53 -0500
  • a72fdedfa7
    Remove unneeded alloca header Jeffrey Walton 2017-03-08 15:47:59 -0500
  • 448282331b
    Remove HTML echo's from 'make benchmark' recipe Jeffrey Walton 2017-03-08 15:45:38 -0500
  • 3f528fef1f Add guard for RDSEED64 on 32-bit platforms (Issue 387) Cleanup comments in rdrand.cpp and rdrand.asm Jeffrey Walton 2017-03-08 14:09:58 -0500
  • 5b98a255f7
    Add pch.obj to clean recipe Jeffrey Walton 2017-03-08 12:25:21 -0500
  • 111db9cf9d WSAStringToAddress => WSAStringToAddressA denisbider 2017-03-07 20:51:00 -0600
  • d3bcbc71da
    Cutover to fastcall for MASM and X86 (Issue 387) Fix "target specific option mismatch" under GCC 4.6 Jeffrey Walton 2017-03-07 12:57:47 -0500
  • 19df272d90
    Fix output buffer cast in rdrand.cpp (Issue 388) Update comments in rdrand.h Fix compile on CentOS 5 with GCC 4.1 Jeffrey Walton 2017-03-07 10:01:26 -0500
  • 78823bfd0c
    Add StaticAlgorithmName to select RNGs for object registry (Issue 386) Jeffrey Walton 2017-03-07 04:52:37 -0500
  • 585b23d7b1
    Removed test define from rdrand.cpp The library should use the intrinsics if they are available. This change should have been included with Commit 14d92f9eba. Jeffrey Walton 2017-03-07 04:39:08 -0500
  • 14d92f9eba
    Improve performance of RDRAND and RDSEED (Issue 387) Jeffrey Walton 2017-03-07 03:57:23 -0500
  • 1e5d6ee8d4
    Add ASM and S files to trim recipe Jeffrey Walton 2017-03-07 02:48:58 -0500
  • 7f0c0fb0c0
    Add ValidateBaseCode to DEBUG tests by default Jeffrey Walton 2017-03-02 00:24:52 -0500
  • ab1477c7a5
    Add GCC 7 warning checks (Issue 383) Jeffrey Walton 2017-03-01 23:40:47 -0500
  • b791234b53
    Remove VC++ 6.0 guard and code (Issue 342) Jeffrey Walton 2017-03-01 09:11:41 -0500
  • 5efb019d8b
    Add C++ nullptr support (Issue 383) Jeffrey Walton 2017-03-01 06:10:06 -0500
  • 5fb2f5d45b
    Remove NULL_CHANNEL and CW8 workaround (Issue 382) Jeffrey Walton 2017-03-01 03:54:02 -0500
  • 0dc97f1d3a
    Unroll decoder initialization (Issue 376) Jeffrey Walton 2017-03-01 02:19:12 -0500
  • 62f92dd592
    Change next version from 5.7 to 6.0 Crypto++ 5.7 was the increment after the 5.6.5 release. Crypto++ 6.0 accurately reflects compatibility Jeffrey Walton 2017-02-21 12:59:20 -0500
  • 8c20630c2d
    Remove extra preamble for copyright. Similar text may be added in the future Jeffrey Walton 2017-02-21 02:54:09 -0500
  • 73836e58a5
    Add Test namespace within CryptoPP namespace (Issue 379) Jeffrey Walton 2017-02-21 02:03:29 -0500
  • 11f0186fd0
    Add DragonFly support to cryptest.sh Jeffrey Walton 2017-02-19 22:30:02 -0500
  • 752a74404d Merge pull request #378 from anonimal/master Jeffrey Walton 2017-02-19 03:16:46 -0500
  • 8558bc519c
    config.h: add DragonFly BSD support anonimal 2017-02-19 07:04:38 +0000
  • c22f3228fb
    Use NO_OS_DEPENDENCE in osrng class files (Issue 377) Thanks to Mattias Linnap for raising the issue Jeffrey Walton 2017-02-18 17:38:40 -0500
  • 26e2e12b6a
    Fix typo Jeffrey Walton 2017-02-16 20:57:31 -0500
  • 5bbdcaf243
    Fix compile under MFC project Jeffrey Walton 2017-02-16 20:55:02 -0500
  • 9d7c5fce55
    Remove old VerifierFilter, switch to SignatureVerificationFilter VerifierFilter was a typedef for SignatureVerificationFilter. The name changed at Crypto++ 5.0 Updated documentation Jeffrey Walton 2017-02-07 18:51:44 -0500
  • 48b0d8ade5
    Updated documentation Jeffrey Walton 2017-02-07 17:13:27 -0500
  • 6511868bc8
    Guard use of LibraryVersion() under MSVC (Issue 371) Jeffrey Walton 2017-02-07 15:03:13 -0500
  • a25fa00a3f
    Updated documentation Jeffrey Walton 2017-02-07 13:23:36 -0500
  • 2868452193
    Add NIST SP800-90A HMAC_DRBG generator Move bodies out-of-line Whitespace Jeffrey Walton 2017-02-07 08:51:58 -0500
  • 8e088b4865
    Add W3C_PADDING to encryption path Jeffrey Walton 2017-02-06 08:09:09 -0500
  • 061f272da3 Merge pull request #368 from edrlab/aes256cbc-w3c-padding-scheme Jeffrey Walton 2017-02-06 03:53:25 -0500
  • b8adc91ce8
    Add asserts to validation routines Jeffrey Walton 2017-01-29 04:58:56 -0500
  • 7c7e8aa804
    Fix headers and data types for cpu.cpp (Issue 362) This is trickier than expected due to sporadic support for PMULL and PMULL2 among compilers Jeffrey Walton 2017-01-29 03:08:19 -0500
  • 6d86e546f9
    Backed off ASSERT. PKCS12_PBKDF and other classes use truncated buffers Jeffrey Walton 2017-01-29 00:19:28 -0500
  • de688a66d9
    Validate Integer::Decode inputLen (Issue 346) Jeffrey Walton 2017-01-28 23:17:33 -0500
  • 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 Jeffrey Walton 2017-01-28 13:23:50 -0500
  • 42af35fd2b
    Change to more intuitive names LibraryVersion and HeaderVersion (Issue 371) Jeffrey Walton 2017-01-28 07:09:27 -0500
  • 6f7339c81b
    Add BuildVersion and RuntimeVersion functions (Issue 371) These function are intended to catch mining and matching of library versions. BuildVersion provides CRYPTOPP_VERSION when the shared object was built. RuntimeVersion provides CRYPTOPP_VERSION the app compiled against, which could be different than the shared object's version Jeffrey Walton 2017-01-28 05:43:24 -0500
  • e757fad5ba
    Add MOVBE test. Add guard for use of C++11 Jeffrey Walton 2017-01-27 13:48:01 -0500
  • 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 Jeffrey Walton 2017-01-27 07:05:45 -0500