Commit Graph

2437 Commits (0dc97f1d3a801c33b16e746c1515f0723cf23790)

Author SHA1 Message Date
Jeffrey Walton 0dc97f1d3a
Unroll decoder initialization (Issue 376) 2017-03-01 02:19:12 -05:00
Jeffrey Walton 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
2017-02-21 12:59:20 -05:00
Jeffrey Walton 8c20630c2d
Remove extra preamble for copyright.
Similar text may be added in the future
2017-02-21 02:54:09 -05:00
Jeffrey Walton 73836e58a5
Add Test namespace within CryptoPP namespace (Issue 379) 2017-02-21 02:03:29 -05:00
Jeffrey Walton 11f0186fd0
Add DragonFly support to cryptest.sh 2017-02-19 22:30:02 -05:00
Jeffrey Walton 752a74404d Merge pull request #378 from anonimal/master
config.h: add DragonFly BSD support
2017-02-19 03:16:46 -05:00
anonimal 8558bc519c
config.h: add DragonFly BSD support 2017-02-19 07:04:38 +00:00
Jeffrey Walton c22f3228fb
Use NO_OS_DEPENDENCE in osrng class files (Issue 377)
Thanks to Mattias Linnap for raising the issue
2017-02-18 17:38:40 -05:00
Jeffrey Walton 26e2e12b6a
Fix typo 2017-02-16 20:57:31 -05:00
Jeffrey Walton 5bbdcaf243
Fix compile under MFC project 2017-02-16 20:55:02 -05:00
Jeffrey Walton 9d7c5fce55
Remove old VerifierFilter, switch to SignatureVerificationFilter
VerifierFilter was a typedef for SignatureVerificationFilter. The name changed at Crypto++ 5.0
Updated documentation
2017-02-07 18:51:44 -05:00
Jeffrey Walton 48b0d8ade5
Updated documentation 2017-02-07 17:13:27 -05:00
Jeffrey Walton 6511868bc8
Guard use of LibraryVersion() under MSVC (Issue 371) 2017-02-07 15:03:13 -05:00
Jeffrey Walton a25fa00a3f
Updated documentation 2017-02-07 13:23:36 -05:00
Jeffrey Walton 2868452193
Add NIST SP800-90A HMAC_DRBG generator
Move bodies out-of-line
Whitespace
2017-02-07 08:51:58 -05:00
Jeffrey Walton 8e088b4865
Add W3C_PADDING to encryption path 2017-02-06 08:09:09 -05:00
Jeffrey Walton 061f272da3 Merge pull request #368 from edrlab/aes256cbc-w3c-padding-scheme
Support for AES-256-CBC with W3C padding scheme ( http://www.w3.org/2001/04/xmlenc#aes256-cbc )
2017-02-06 03:53:25 -05:00
Jeffrey Walton b8adc91ce8
Add asserts to validation routines 2017-01-29 04:58:56 -05:00
Jeffrey Walton 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
2017-01-29 03:08:19 -05:00
Jeffrey Walton 6d86e546f9
Backed off ASSERT. PKCS12_PBKDF and other classes use truncated buffers 2017-01-29 00:19:28 -05:00
Jeffrey Walton de688a66d9
Validate Integer::Decode inputLen (Issue 346) 2017-01-28 23:17:33 -05:00
Jeffrey Walton 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
2017-01-28 13:23:50 -05:00
Jeffrey Walton 42af35fd2b
Change to more intuitive names LibraryVersion and HeaderVersion (Issue 371) 2017-01-28 07:09:27 -05:00
Jeffrey Walton 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
2017-01-28 05:43:24 -05:00
Jeffrey Walton e757fad5ba
Add MOVBE test. Add guard for use of C++11 2017-01-27 13:48:01 -05:00
Jeffrey Walton 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
2017-01-27 07:05:45 -05:00
Jeffrey Walton aaf43e3f1d Updated variable names 2017-01-27 06:31:55 -05:00
Jeffrey Walton 79f3ab89f1
Removed remaining CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY (Issue 369) 2017-01-27 06:02:58 -05:00
danielweck 46a9323d19 patched CryptoPP Crypto++ to add support for AES-256-CBC with W3C padding scheme (based on https://github.com/readium/readium-lcp-client/pull/26 ) 2017-01-24 16:43:10 +00:00
Jeffrey Walton d4c247a1fd
Add MOVBE support
MOVBE is a modest gain over BSWAP. Though its guarded by CRYPTOPP_MOVBE_AVAILABLE, we cannot detect availability with a preprocessor macro. That is, GCC does not provide __MOVBE__ or similar. It has to be enabled manually
2017-01-24 04:26:00 -05:00
Jeffrey Walton 3dbf6e785c
Removed debug instrumentation 2017-01-23 21:33:23 -05:00
Jeffrey Walton 81669590d5
Update documentation
Added additional asserts
2017-01-23 19:25:06 -05:00
Jeffrey Walton a6105c5417
Clear MSVC warning "warning C4189: 'params': local variable is initialized but not referenced" 2017-01-23 04:35:30 -05:00
Jeffrey Walton 23fbba488d
Add BLAKE2B_ and BLAKE2S_ prefix to macros, remive \#undef's 2017-01-22 22:44:35 -05:00
Jeffrey Walton 12978bc6ea
Use ASCII character for comment 2017-01-22 20:53:50 -05:00
Jeffrey Walton 14f5305c92
VEXT_8 -> VEXT_U8 2017-01-22 20:53:19 -05:00
Jeffrey Walton 6e1a021511
Comments and whitespace (Issue 367) 2017-01-22 13:34:50 -05:00
Jeffrey Walton 9dd2744419
Disable NEON for Cortex-A53 and A57 processors (Issue 367) 2017-01-22 13:18:35 -05:00
Jeffrey Walton 0f83589852
Comments and whitespace checkin 2017-01-20 21:33:27 -05:00
Jeffrey Walton f2132a81c1
Comments and whitespace checkin 2017-01-20 19:41:20 -05:00
Jeffrey Walton 74328f93a8
Fix "error: impossible constraint in asm" under Aarch64 (Issue 366) 2017-01-20 18:48:11 -05:00
Jeffrey Walton 08c0e26020
Add CRYPTOPP_ASSERT to Validate routines
Since we switched to CRYPTOPP_ASSERT we don't have to worry about an accidental assert in production. We can now assert ValidateElement and ValidateGroup and let the code warn of potential problems during development.
This came about because ECGDSA inadvertently used GetGroupOrder() rather than GetSubgroupOrder(). The assert alerted to the problem area without the need for debugging
2017-01-20 06:10:14 -05:00
Jeffrey Walton 5522e93133
Use AES/GCM for PMULL benchmarking 2017-01-19 13:44:03 -05:00
Jeffrey Walton 4f725eddc1
Call vrev64q_u8 after vld1q_u8 2017-01-19 07:37:54 -05:00
Jeffrey Walton bbf13b77e7
Switch to vext and remove unnecessary casts 2017-01-19 06:22:38 -05:00
Jeffrey Walton b129818c35
Add GCC inline ASM for PMULL and PMULL2
The macros that invoke GCC inline ASM have better code generation and speedup GCM ops by about 70 MiB/s on an Opteron 1100. The intrinsics are still available for Windows platforms and Visual Studio 2017 and above
2017-01-19 02:38:00 -05:00
Jeffrey Walton ecc818f341
Pickup "$(PLATFORM)" == "amd64" for VS2017 2017-01-18 03:52:21 -05:00
Jeffrey Walton 3e82a3102a
Pickup "$(PLATFORM)" == "arm" for VS2017 2017-01-18 03:41:59 -05:00
Jeffrey Walton d9df0961e0
Fix SHA512_SSE2_Transform after whitespace checkin (Issue 365) 2017-01-17 00:49:10 -05:00
Jeffrey Walton 4f2bb7664f
Avoid C-style casts for NEON vectors
Switch to ARM vector casts like vreinterpretq_u8_u64
2017-01-16 17:12:44 -05:00