Commit Graph

3654 Commits

Author SHA1 Message Date
Jeffrey Walton
a80b1d35b0
Parameterize word type for subkeys in AdvancedProcessBlocks templates
This was needed a while ago but we mostly side-stepped the issues with casts. CHAM64 uses a word16 type for subkeys and a cast won't fix it because we favor word32 for 64-bit block sizes.
2018-06-20 19:25:52 -04:00
Jeffrey Walton
a6cdf2bfd1
Switch to _mm_loadu_pd to load round keys
This is profitable by 0.1 to 0.2 cpb on a modern Core-i5
2018-06-20 01:20:27 -04:00
Jeffrey Walton
1fd8d612ea
Specialize single word UnpackXMM 2018-06-19 21:35:44 -04:00
Jeffrey Walton
5e41d5d9b6
Fix SSSE3 include guard
Use single XMM word for subkeys
2018-06-19 20:15:30 -04:00
Jeffrey Walton
6138829572
Add CHAM128 SSSE3 implementation (PR #670)
CHAM-128(128) from 10.5 cpb to 4.1 cpb. CHAM-128(256) from 12.5 cpb to 4.7 cpb.
2018-06-19 18:03:28 -04:00
Jeffrey Walton
34dcb0d4cd
Add additional CHAM test vectors (PR #670)
This is in preparation for SSE and large block processing. CTR mode is used because AdvancedProcessBlocks128_4x1_SSE
2018-06-19 17:09:43 -04:00
Jeffrey Walton
55ba5de9b5
Fix typo 2018-06-18 19:00:30 -04:00
Jeffrey Walton
0ccdc197b7
Add AVX and AVX2 runtime feature detection (GH #671)
There are no corresponding defines in config.h at the moment. Programs will have to use the preprocessor macros __AVX__ and __AVX2__ to determine when they are available.
2018-06-18 18:33:17 -04:00
Jeffrey Walton
207c6fcb1a
Update documentation 2018-06-18 00:14:31 -04:00
Jeffrey Walton
54d5100344
Add CHAM lightweight block cipher (PR #670)
Add CHAM lightweight block cipher
2018-06-17 23:24:47 -04:00
Jeffrey Walton
30b2de26f4
Update documentation 2018-06-17 22:49:59 -04:00
Jeffrey Walton
1f06c512c4
Add LEA lightweight block cipher (GH #669) 2018-06-17 22:36:41 -04:00
Jeffrey Walton
f320e7d92a
Fix missing constants in Threefish (GH #664) 2018-06-03 09:10:45 -04:00
Jeffrey Walton
1543de863c
Fix Kalyna512_Info parameter (GH #662) 2018-06-02 16:50:28 -04:00
Jeffrey Walton
d286f89b3f
Fix Threefish blocksize parameter (GH #663) 2018-06-02 16:28:25 -04:00
Jeffrey Walton
edc7689a7f
Fix overcommit resources for Scrypt parallelization (GH #641) 2018-05-20 08:33:21 -04:00
Mouse
a0f91aeb25
Merge pull request #640 from alanbirtles/patch-1
Workaround for #636
2018-05-13 12:37:18 -04:00
Jeffrey Walton
4fc0fefc6e
Add missing include to pwdbased.h (GH #657) 2018-05-13 10:42:50 -04:00
Marcel Raad
7c1d296283 Fix clang warnings in headers (#655)
* remove superfluous semicolon

* Remove C-style casts from public headers

clang warns about them with -Wold-style-cast. It also warns about
implicitly casting away const with -Wcast-qual. Fix both by removing
unnecessary casts and converting the remaining ones to C++ casts.
2018-05-10 19:59:21 -04:00
Jeffrey Walton
a07a0e5e5f
Add recipe to install the library only (GH #653)
Some distros don't want to install cryptest.exe. For folks who don't want to install the test program, they can issue 'make install-lib'.
install-lib is a non-standard target, but the GNU Coding Standard does not have a standard target for the task.
2018-05-06 00:10:38 -04:00
Jeffrey Walton
3e965ac9b3
Back-off on Hash asserts (GH #652)
The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders.
2018-05-05 23:27:55 -04:00
Jeffrey Walton
d1087291b3
Back-off on Hash asserts (GH #652)
The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders.
2018-05-05 23:17:44 -04:00
Jeffrey Walton
3159969808
Back-off on Hash asserts (GH #652)
The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders.
2018-05-05 22:56:15 -04:00
Jeffrey Walton
3deb24b7de
Fix Android build after renaming defines for CMake
This change should have occurred during commits 188e0df650 and 5422f0c13a.
2018-05-05 21:46:17 -04:00
Jeffrey Walton
188e0df650
Rename CRYPTOPP_DISABLE_SHA → CRYPTOPP_DISABLE_SHANI …
This aligns both config.h and Cmake. Also see Gentoo Issue 654598 (https://bugs.gentoo.org/654598)
2018-05-04 10:10:50 -04:00
Jeffrey Walton
5422f0c13a
Rename CRYPTOPP_DISABLE_AES → CRYPTOPP_DISABLE_AESNI
This aligns both config.h and Cmake. Also see Gentoo Issue 654598 (https://bugs.gentoo.org/654598)
2018-05-03 21:28:17 -04:00
Asen Kovachev
039db17da7 Add CRYPTOPP_ASSERT to match Keccak and SHA3 (#654)
As described in https://github.com/weidai11/cryptopp/issues/652 for consistency we should add assert in all hash transformations. The expectation is to have a good pointer and a non-0 length or a null pointer and 0-length.
2018-05-03 20:12:34 -04:00
Jeffrey Walton
91faa5d399
Add AdditionalOptions property to VCXPROJ files (GH #649) 2018-05-01 23:42:04 -04:00
Jeffrey Walton
55071c49c1
Fix failed Android tests on Travis
This change should have been made at https://github.com/weidai11/cryptopp/commit/e2bc3b55caab
2018-04-26 21:35:01 -04:00
PetteriHuusko
d132639881 Fix ios build for cases where Xcode is installed in a path with spaces (PR #646) 2018-04-26 06:56:26 -04:00
Flo
63b655d7ee Access modifiers for SIMON and SPECK ciphers modified. (#644)
- ProcessAndXorBlock
- AdvancedProcessBlocks
now public instead of protected.
2018-04-20 20:54:02 -04:00
Jeffrey Walton
e2bc3b55ca
Rename setenv-android.sh to setenv-android-gcc.sh (GH #637)
This makes room for a Clang/LLVM version of the script
2018-04-19 22:39:07 -04:00
alanbirtles
a4acbb38da
Workaround for #636
Temporarily switch to AT&T syntax in ASJ for clang 5.0.0+ and apple clang 9.0.0+ to workaround https://bugs.llvm.org/show_bug.cgi?id=36144
2018-04-12 14:59:15 +01:00
Jeffrey Walton
bdd0f02867
Make chenage-version.sh OS X friendly 2018-04-08 16:19:16 -04:00
Jeffrey Walton
4bb331f5d0
Post-release version increment 2018-04-08 15:58:25 -04:00
Jeffrey Walton
c8d8caf700
Prepare for Crypto++ 7.0 release 2018-04-08 04:48:59 -04:00
Jeffrey Walton
9a991ac1eb
Fix UBsan finding in HKDF
This was introduced when HKDF was reworked for the new KeyDerivationFunction interface
2018-04-08 03:20:14 -04:00
Jeffrey Walton
71e9fece87
Make CAST temporaries class members 2018-04-07 11:41:00 -04:00
Jeffrey Walton
11e076003a
Coverity finding CID 189203, 189204, 189205 (ARRAY_VS_SINGLETON)
The finding was an out-of-bounds read but Coverity does not realize the API takes a byte count, not element count. This change may produce the same finding.
2018-04-07 10:39:01 -04:00
Jeffrey Walton
cd8c03c816
Move PasswordBasedKeyDerivationFunction to cryptlib.h 2018-04-07 08:14:22 -04:00
Jeffrey Walton
4120e3a53f
Allow Travis iOS test failure for WatchOS (GH #570)
Also see https://stackoverflow.com/q/45671493/608639
2018-04-06 07:21:53 -04:00
Jeffrey Walton
64a15cf51b
Order of initialization for ASN.1 decoders 2018-04-06 02:29:08 -04:00
Jeffrey Walton
62a9574f3f
Make AuthenticatedSymmetricCipher::AlgorithmName non-pure
Also see https://stackoverflow.com/q/49658309/608639
2018-04-05 20:34:08 -04:00
Jeffrey Walton
5aec2a4ab0
Fix compile under cryptest.nmake 2018-04-05 20:17:43 -04:00
Jeffrey Walton
29113a980d
Fix compile under Visual Studio 2008
We need to add something to cryptest.sh to find these breaks due to <stdint.h>
2018-04-05 20:14:07 -04:00
Jeffrey Walton
7065702ba1
Fix return codes from cryptest-ios.sh 2018-04-05 18:38:43 -04:00
Jeffrey Walton
1103819a86
Remove extra space between variable and value for setenv-ios.sh 2018-04-05 15:19:57 -04:00
Jeffrey Walton
37d723e680
Fix iPhoneSimulator build (GH #635) 2018-04-05 08:00:25 -04:00
Jeffrey Walton
c27d3a9442
Make ASN.1 decoder m_values protected 2018-04-03 17:32:56 -04:00
Jeffrey Walton
9888d22d4b
Rename ECGDSA_ISO15946 -> ECGDSA (#634) 2018-04-02 23:58:23 -04:00