Commit Graph

  • a49ff560e7 Update head notes Jeffrey Walton 2018-01-11 13:16:13 -0500
  • 691e7af29a
    Fix defines for PPC feature probes Thanks to Bob Wilkinson for reporting at https://groups.google.com/d/msg/cryptopp-users/gPJOMOUMLhU/xHTxD8P-AgAJ Jeffrey Walton 2018-01-11 13:04:59 -0500
  • 226516f590
    Update documentation Jeffrey Walton 2018-01-11 12:26:32 -0500
  • 6f9f9e5177
    Update documentation Jeffrey Walton 2018-01-11 11:27:11 -0500
  • 29029c6a33
    Update documentation Jeffrey Walton 2018-01-11 11:21:49 -0500
  • 1e12203466 Centralise the conditional compilation to an implementation of find_if_not. Kirit Sælensminde 2018-01-11 11:35:36 +0700
  • 7a080c32c8
    Fix C++03 compile Whitespace check-in Jeffrey Walton 2018-01-10 20:49:07 -0500
  • 1823b9d9c4 Fix error in bits2octets: should use the base point's bit count, instead of the hash value's. Also add test case for GetRandom, with original data from RFC6979 (#560) Linmao Song 2018-01-11 01:18:15 +0000
  • 61940e31c0 Fix error in bits2octets: should use the base point's bit count, instead of the hash value's. Also add test case for GetRandom, with original data from RFC6979 Linmao Song 2018-01-10 17:53:47 +0000
  • c43b1924dc Duplicate the if statements. Kirit Sælensminde 2018-01-10 10:43:34 +0700
  • 132fed0343 Conditionally use a lambda rather than the older `bind2nd` style. Kirit Sælensminde 2018-01-09 18:33:34 +0700
  • 2c295b2454
    Add topic on Side Channel leakage Jeffrey Walton 2018-01-08 09:13:15 -0500
  • 5ae79afd89
    Add CRYPTOPP_CXX11_LAMBDA for N2927 (v1.1) (GH #558) Jeffrey Walton 2018-01-07 21:35:12 -0500
  • 0e32a7f1e6
    Fix "Internal compiler error: max number of generated reload insns ..." (GH #554) Jeffrey Walton 2018-01-07 10:53:15 -0500
  • 3360e97ad9
    Add C++20 testing to cryptest.sh This is initial testing support for N4713, "Working Draft, Standard for Programming Language C++". We know GCC uses -std=c++20 and -std=gnu++20, so we can start testing things Jeffrey Walton 2018-01-06 05:00:24 -0500
  • cb886459ff Merge e399afeca2 into 4f2c605209 zorun 2018-01-06 05:38:05 +0000
  • 4f2c605209
    Add Power4 unaligned Load and Store Jeffrey Walton 2018-01-05 21:27:27 -0500
  • bfc2b5f02d
    Fix double leading "0x" prefix (GH #557) Thanks to John McCabe for reporting Jeffrey Walton 2018-01-05 18:59:28 -0500
  • 9624f928f8
    Fix missing SM2 methods in Windows DLL This was not ready to be checked in. I think it cross-pollinated duing a checkin for documentation Jeffrey Walton 2018-01-05 18:47:28 -0500
  • 9c80a706c8
    Fix "impossible register constraint in ASM" (GH #554) Thanks to Eduardo Miravalls for reporting the issue Jeffrey Walton 2018-01-02 10:51:16 -0500
  • eaa8185e61
    Clear GCC -Wreorder warnings Jeffrey Walton 2018-01-02 10:34:06 -0500
  • d6d53f2e9d
    Add Power4 Vector Load, Store, Add and Xor Jeffrey Walton 2018-01-02 08:13:42 -0500
  • fac3a44a84
    Move Altivec AdvancedProcessBlocks into adv-simd.h Jeffrey Walton 2018-01-02 07:08:13 -0500
  • fb0ecfde62
    Clear clang-tidy warnings This commit also tweaks the way Integer parses byte arrays. The modified routines are slightly faster. On a Core-i5 6400 the self tests are 0.1 to 0.2 seconds faster Jeffrey Walton 2018-01-02 04:17:22 -0500
  • 1a7f19cdde
    Use 'command -v' to test for ld.gold Jeffrey Walton 2018-01-02 01:13:59 -0500
  • 58726498f1
    Clear clang-tidy warnings Jeffrey Walton 2018-01-02 00:15:34 -0500
  • 5f083d652e
    Clear signed/unsigned warnings Jeffrey Walton 2017-12-31 03:54:33 -0500
  • ba98c2bfb9
    Clear signed/unsigned warning in Debug Jeffrey Walton 2017-12-31 02:24:16 -0500
  • 651563e6c2
    Temporary fix for IBM XLC failed SM3 self tests (GH #553) Jeffrey Walton 2017-12-30 22:18:08 -0500
  • 8b7f21b07d
    Update makefiles to use one call to $(CXX) -dumpmachine Jeffrey Walton 2017-12-30 18:38:40 -0500
  • f3618f4b7f
    Fix IBM xlC compile Jeffrey Walton 2017-12-30 18:37:56 -0500
  • b4df31c7f9 Change ::log() to log() to work with C++Builder (#552) Tanzinul Islam 2017-12-30 20:16:27 +0000
  • 1226767841 Change ::log() to log() to work with C++Builder Tanzinul Islam 2017-12-30 18:48:00 +0000
  • 1699562581 Remove commented code Jeffrey Walton 2017-12-28 19:25:45 -0500
  • cd35346f70
    Fix Solaris failed compile due to SHA with GCC (GH #551) Jeffrey Walton 2017-12-28 19:14:20 -0500
  • 3c6eb74cd7
    Clear Coverity issue CID 186341 Jeffrey Walton 2017-12-28 01:29:31 -0500
  • 7b14ead0f3
    Fix unaligned load for _mm_loaddup_pd with GCC and UBsan This function was missed earlier. Unfortunately, it does not squash all of the unaligned load findings. I'm pretty sure it is a GCC problem Jeffrey Walton 2017-12-28 01:16:17 -0500
  • 24883ca79f
    Clear Coverity issue CID 186337 Jeffrey Walton 2017-12-27 00:43:00 -0500
  • 3b1f6827f5
    Clear Coverity issue CID 186338 Jeffrey Walton 2017-12-27 00:40:24 -0500
  • 09f9d76631
    Fix "cast from 'struct sockaddr*' to 'struct sockaddr_in*' increases required alignment" on OS X Jeffrey Walton 2017-12-26 17:57:26 -0500
  • 0aa2ebbbf3
    Clear signed/unsigned warnings with GCC and -Wall -Wextra Jeffrey Walton 2017-12-26 16:59:32 -0500
  • 4d9c91b425
    Fix missing define for MSVC Jeffrey Walton 2017-12-26 15:07:28 -0500
  • 4904d0fc8d
    Fix unaligned load for _mm_loaddup_pd with GCC and UBsan Jeffrey Walton 2017-12-26 14:55:10 -0500
  • 3fff9e85df
    Fix unaligned load for _mm_loaddup_pd with GCC and UBsan Jeffrey Walton 2017-12-26 12:41:04 -0500
  • ae445c0b0f
    Clear signed/unsigned warnings with GCC and -Wall -Wextra Jeffrey Walton 2017-12-26 11:48:11 -0500
  • 66da740ad3
    Use M128_CAST and CONST_M128_CAST for Clang Also see http://bugs.llvm.org/show_bug.cgi?id=20670 Jeffrey Walton 2017-12-26 11:20:18 -0500
  • 8e916e7bac
    Use M128_CAST and CONST_M128_CAST for Clang Also see http://bugs.llvm.org/show_bug.cgi?id=20670 Jeffrey Walton 2017-12-26 11:16:52 -0500
  • bee2598ecd
    Add <emsa2.h> to dll.cpp Jeffrey Walton 2017-12-26 10:53:11 -0500
  • b7133e7b3b
    Fix Clang specialization and definition warnings (GH #300, GH #533) Clang 3.8 and above generates lots of "'PKCS_DigestDecoration<SHA1>::decoration' required here, but no definition is available" warnings Jeffrey Walton 2017-12-26 00:46:50 -0500
  • c0a8dab984
    Fix failed self test under Clang (GH #533) This may cause GH #300, "Clang 3.9 and missing member definitions for template classes" or GH #294, "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not... Jeffrey Walton 2017-12-25 22:29:21 -0500
  • 4232cfd40b
    Fix failed self test under Clang (GH #533) This may cause GH #300, "Clang 3.9 and missing member definitions for template classes" or GH #294, "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not... Jeffrey Walton 2017-12-25 22:27:53 -0500
  • b20a91f6b2
    Update documentation Jeffrey Walton 2017-12-24 21:07:18 -0500
  • 41da3fa7f1
    Use ptrdiff_t cast in BlockTransformation (GH #549) Jeffrey Walton 2017-12-17 09:07:12 -0500
  • d7a2e0e10c
    Removed unneeded defines from ppc-simd.cpp Whitespace check-in Jeffrey Walton 2017-12-16 20:26:59 -0500
  • 19deccf3ba
    Fix Clang 5.0 "runtime error: addition of unsigned offset to 0xXXXX overflowed to 0xYYYY" (GH #549) Jeffrey Walton 2017-12-16 18:18:53 -0500
  • dc21de2483
    Fix UBsan overflow finding We were cating UBsan findings under Clang similar to "adv-simd.h:1138:26: runtime error: addition of unsigned offset to 0x000002d41410 overflowed to 0x000002d41400". The problem was CRYPTOPP_CONSTANT, which used an enum. The compiler is allowed to pick the underlying data type, and Clang was picking a signed type Jeffrey Walton 2017-12-16 14:21:08 -0500
  • c3a85caf52 Build fixes (#547) zorun 2017-12-16 15:07:23 +0100
  • e399afeca2 Add pkgconfig file libcrypt++.pc Baptiste Jonglez 2017-12-13 20:51:20 +0100
  • 076ed105c9 Makefile: call 'ln -sf' instead of 'ln -sf -sf' Baptiste Jonglez 2017-12-16 14:18:32 +0100
  • d8a4655991 GNUmakefile-cross: Fix install target Baptiste Jonglez 2017-12-13 20:38:42 +0100
  • e56caf72ec
    Fix unwanted Git mode change Jeffrey Walton 2017-12-15 19:13:20 -0500
  • 7aa3377bbd Prepare for changes to support latest NDK liek r16 (GH #546) Jeffrey Walton 2017-12-15 19:10:02 -0500
  • 93f6901119
    Avoid including <arm_acle.h> on Android (GH #546) It sure would be nice if everyone just followed the ACLE guidlines at http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf Jeffrey Walton 2017-12-15 17:00:39 -0500
  • 43a34590a9
    Add Altivec detection for PowerMac We now need to detect Altivec/Power4. Formerly it did not matter so CPU_QueryAltivec simply returned false Jeffrey Walton 2017-12-13 11:49:35 -0500
  • e1c9746b70
    Fix Power8 compile under GCC Jeffrey Walton 2017-12-12 10:52:57 -0500
  • 57e3ae309b
    Update documentation Remove typedefs Whitespace check-in Jeffrey Walton 2017-12-12 09:22:03 -0500
  • 2c79be7a54
    Add CRYPTOPP_POWER5_AVAILABLE Power4 lacks 'vector long long' Rename datatypes such as 'uint8x16_p8' to 'uint8x16_p'. Originally the p8 suffix indicated use with Power8 in-core crypto. We are now using Altivec/Power4 for general vector operations. Jeffrey Walton 2017-12-12 08:17:17 -0500
  • ca54d0c7da
    Add CRYPTOPP_POWER5_AVAILABLE Power4 lacks 'vector long long' Rename datatypes such as 'uint8x16_p8' to 'uint8x16_p'. Originally the p8 suffix indicated use with Power8 in-core crypto. We are now using Altivec/Power4 for general vector operations. Jeffrey Walton 2017-12-12 08:14:53 -0500
  • 15d637771f
    Add CRYPTOPP_POWER5_AVAILABLE Power4 lacks 'vector long long' Rename datatypes such as 'uint8x16_p8' to 'uint8x16_p'. Originally the p8 suffix indicated use with Power8 in-core crypto. We are now using Altivec/Power4 for general vector operations. Jeffrey Walton 2017-12-12 08:09:31 -0500
  • b7e636ac51
    Rename ppc-crypto.h to ppc-simd.h Jeffrey Walton 2017-12-12 07:15:59 -0500
  • 074c889210
    Add NEON flags to rijndael-simd.cpp AES does not have a NEON implementation. However, because it includes "adv-simd.h", it needs the compiler options so NEON types are available. Otherwise the compile fails. We can't guard "adv-simd.h" and NEON on just AES because Simon and Speck use the templates in their NEON implementations. Jeffrey Walton 2017-12-10 12:11:53 -0500
  • 195ac2c7c9
    Refactor rijndael-simd.cpp and simon.simd.cpp to use adv-simd.h Jeffrey Walton 2017-12-10 11:09:50 -0500
  • e90cc9a028
    Update comments Jeffrey Walton 2017-12-10 05:41:19 -0500
  • 8a5911e6eb
    Refactor <cipher>_AdvancedProcessBlocks_<arch> into adv-simd.h This also fixes the SPECK64 bug where CTR mode self tests fail. It was an odd failure because it only affected 64-bit SPECK. SIMON was fine and it used nearly the same code. We tracked it down through trial and error to the table based rotates. Jeffrey Walton 2017-12-09 21:04:25 -0500
  • 3ff04f1bf0
    Cleanup includes for CRC32 and CRC32C Jeffrey Walton 2017-12-09 13:09:49 -0500
  • 65222dfe9e
    Move location of CRYPTOPP_ARM_ACLE_AVAILABLE test in config.h This should make it easier to detect when we need to include <arm_acle.h> Jeffrey Walton 2017-12-09 13:07:50 -0500
  • 5856ab5a7e
    Add Valgrind suppression file for Salsa20 and runtime's __memcmp_sse4_1 Jeffrey Walton 2017-12-08 17:46:44 -0500
  • e457ca26f7
    Add SSE3 <pmmintrin.h> for SImon and Speck Add additional comments for WORKAROUND_GCC_OPTERON_ISSUE Jeffrey Walton 2017-12-08 13:54:00 -0500
  • 148202369b
    Fix Speck-64 CTR mode It looks like the delay was due to some GCC 7 issue. We had to disable parallel blocks on Aarch64 with GCC 7. We may be running out of registers and that could be causing problems. It looks like GCC uses up to v30. Jeffrey Walton 2017-12-07 22:30:03 -0500
  • 02037b5ce6
    Fix Simon-64 CTR mode Jeffrey Walton 2017-12-07 19:45:32 -0500
  • 07f2a4fc3f
    Fix Simon-64 and Speck-64 CTR mode This fixes CTR mode for IA-32. We were only incrementing half the counters. Added additional test vectors Jeffrey Walton 2017-12-07 16:55:23 -0500
  • fe257e92a9
    Add const-ness to internal BLAKE2 functions (GH #527) Jeffrey Walton 2017-12-06 17:40:34 -0500
  • b436411de5
    Fix MSVC 2017 hang on BLAKE2 (GH #527) It looks like the macros for BLAKE2B and BLAKE2S round functions were too much for the compiler to handle Jeffrey Walton 2017-12-06 14:02:28 -0500
  • 86acc8ed45
    Use 6x-2x-1x for Simon and Speck on IA-32 Jeffrey Walton 2017-12-06 06:18:46 -0500
  • e9654192f2
    Remove unneeded temp[] array Jeffrey Walton 2017-12-05 20:35:57 -0500
  • 490701acca
    Use 12x-4x-1x for Simon and Speck on ARM Jeffrey Walton 2017-12-05 18:43:53 -0500
  • 7bc621da62
    Enable NEON/ASIMD for Simon and Speck on Aarch32/Aarch64 (GH #545) Jeffrey Walton 2017-12-05 14:02:48 -0500
  • 9b61d4143d
    Add big- and little-endian rotates for Aarch32 and Aarch64 Jeffrey Walton 2017-12-05 12:32:26 -0500
  • 9faa504a24
    Fix Aarch32 and Aarch64 rotates Jeffrey Walton 2017-12-05 11:15:26 -0500
  • c18793f862
    Fix SIMON-64 missing transform Jeffrey Walton 2017-12-05 09:14:58 -0500
  • 4990ffe5b8
    Add SIMON-64 NEON intrinsics Jeffrey Walton 2017-12-05 08:53:57 -0500
  • b208c8c1b4
    Add 4 additional lanes to SPECK-64 for ARM Jeffrey Walton 2017-12-05 07:16:34 -0500
  • e09e6af1f8
    Enable multi-block for SPECK-64 and SIMON-64 Also cleaned up SIMON-64 vector permute code. Thanks again to Peter Cordes Jeffrey Walton 2017-12-05 04:19:44 -0500
  • 147ecba5df
    Add temp working variable for SPECK64_AdvancedProcessBlocks_SSE41 Avoid potential undefined behavior by using aligned words Jeffrey Walton 2017-12-04 14:52:36 -0500
  • 076937eb81
    Update comments for vector permutes in SPECK-128 Jeffrey Walton 2017-12-04 12:31:32 -0500
  • 25709d2597
    Fix SPECK64 vector permutes Thanks to Peter Cordes for the suggestion on handling the case Jeffrey Walton 2017-12-04 09:47:26 -0500
  • 46271660a1
    Switch to uint64x2_t for SIMON-128 Jeffrey Walton 2017-12-04 05:47:34 -0500
  • e9714b40d2
    Switch to _mm_unpacklo_epi32 and _mm_unpackhi_epi32 The manual _mm_extract_epi32 and _mm_insert_epi32 are required during setup, be we can use SSE on teardown Jeffrey Walton 2017-12-04 05:01:27 -0500
  • cd31fa29dc
    Switch to uint64x2_t for SPECK-128 Jeffrey Walton 2017-12-04 03:38:39 -0500
  • 1de143203e
    Add SPECK-64 NEON intrinsics Jeffrey Walton 2017-12-03 18:47:39 -0500