Commit Graph

41 Commits

Author SHA1 Message Date
Jeffrey Walton
a65d55a3fd
Rewrite BLAKE2 classes
The ParameterBlocks for BLAKE2 had undefined behavior. We relied on the compiler packing the bytes in the structure, then we used the first byte as the start of an array.

This rewrite does things correctly. We don't memset the structure, and we don't treat the structure as a contiguous array.
2018-11-20 23:32:35 -05:00
Jeffrey Walton
13bee44388
Update comments 2018-11-20 00:06:34 -05:00
Jeffrey Walton
8b4da4ca68
Update comments 2018-11-15 04:12:35 -05:00
Jeffrey Walton
6aa6393bf3
Update documentation 2018-11-03 11:17:54 -04:00
Jeffrey Walton
4b4dbdb90a
Update documentation 2018-11-03 11:09:09 -04:00
Jeffrey Walton
bdeaae3ac9
Fix disjoint t[] and f[] when using SIMD implementations 2018-11-03 10:49:22 -04:00
Jeffrey Walton
600e2a8be4
Rewrite BLAKE2 classes to remove intermediate base class 2018-11-03 10:33:35 -04:00
Jeffrey Walton
659c0c113c
Add BLAKE2b Power8 implementation (GH #729) 2018-10-30 06:20:31 -04:00
Jeffrey Walton
b74a6f4445
Add algorithm provider member function to Algorithm class 2018-07-06 09:23:37 -04:00
Jeffrey Walton
befd04312d
Remove unneeded Doxygen directive 2018-01-19 14:31:20 -05:00
Jeffrey Walton
61ec50dabe
Change Doxygen comment style from //! to ///
Also see https://groups.google.com/forum/#!topic/cryptopp-users/A7-Xt5Knlzw
2017-11-29 10:54:33 -05:00
Jeffrey Walton
5efb019d8b
Add C++ nullptr support (Issue 383) 2017-03-01 06:10:06 -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
klemens
5a5c633073 spelling fixes 2016-12-27 18:34:57 +01:00
Ralph Tandetzky
35a2ef10a2 Fix: GCC warning "type qualifiers ignored on function return type".
This pedantic message appeared all over the code. Also removed one warning about an unused variable in release build.
2016-12-01 15:37:04 +01:00
Jeffrey Walton
76b11b010c
Add CRYPTOPP_STATIC_CONSTEXPR macro 2016-11-13 11:50:34 -05:00
Jeffrey Walton
399a1546de Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
2016-09-16 11:27:15 -04:00
Jeffrey Walton
36d769e907 Updated documentation 2016-09-09 05:19:29 -04:00
Jeffrey Walton
c1556295e6 Add constexpr-ness to StaticAlgorithmName member function 2016-09-07 06:16:46 -04:00
Jeffrey Walton
0d28f5b6b5 Remove uneeded debug assignment in dtor 2016-06-30 21:09:48 -04:00
Jeffrey Walton
920ba48317 Remove CRYPTOPP_NO_VTABLE from BLAKE2_Info<T>. Fix memset salt and personalization (Issue 209) 2016-06-30 20:55:56 -04:00
Jeffrey Walton
bc52b1abf8 Cleared warning 'extra ";" ignored' 2016-06-08 16:46:51 -04:00
Jeffrey Walton
09dc7caf25 Increase allocation size of FixedSizeAlignedSecBlock for State and ParameterBlock 2016-05-22 10:36:03 -04:00
Jeffrey Walton
14fcf50ae0 Add missing constants for Debug builds 2016-05-21 12:58:55 -04:00
Jeffrey Walton
a6d58714ac Avoid Valgrind uninitialized warning by defering checks and using asserts 2016-05-21 08:45:05 -04:00
Jeffrey Walton
38f87d3cfc Whitespace cleanup 2016-05-20 12:36:25 -04:00
Jeffrey Walton
b005d8b4b5 Fixed memory error after switch to FixedSizeAlignedSecBlock<State> and FixedSizeAlignedSecBlock<ParameterBlock> 2016-05-19 14:55:51 -04:00
Jeffrey Walton
d37b3f9028 Fixed memory error after switch to FixedSizeAlignedSecBlock<State> and FixedSizeAlignedSecBlock<ParameterBlock> 2016-05-19 14:39:25 -04:00
Jeffrey Walton
3c7b585810 Add test for AES, SHA1 and SHA2 from ARM Crypto extension 2016-05-19 04:18:35 -04:00
Jeffrey Walton
77613ae9b0 Clear Visual Studio C4316 warning for "object allocated on the heap may not be aligned 16" 2016-05-17 08:08:40 -04:00
Jeffrey Walton
73fea1dba0 Add BLAKE2_NEON_Compress64 2016-05-11 15:07:29 -04:00
Jeffrey Walton
01452d4ece Add BLAKE2_NEON_Compress32 2016-05-07 08:08:40 -04:00
Jeffrey Walton
a5621a9de9 Fixed documentation typo 2016-04-24 21:01:22 -04:00
Jeffrey Walton
ca9690312b Modify BLAKE2_State ctor to initialize each member except buffer[] 2016-04-22 20:40:40 -04:00
Jeffrey Walton
abcec10b29 Cleared Visual Studio warning on padding structures 2016-04-22 20:31:18 -04:00
Jeffrey Walton
9e2b4f84ee Change default key size to output size per BLAKE2 recommendation 2016-04-22 18:09:47 -04:00
Jeffrey Walton
f4d8b054b3 Updated documentation 2016-04-20 19:03:46 -04:00
Jeffrey Walton
50881b3fb3 Enable BLAKE2_SSE2_Compress32 and BLAKE2_SSE4_Compress32. Add static function pointer for one-time initialization 2016-04-19 11:59:21 -04:00
Jeffrey Walton
1b661bb688 Add constants for MIN_KEYLENGTH, MAX_KEYLENGTH, DEFAULT_KEYLENGTH. Fix keyed hash calculation. Fix tree mode variable initialization. Cleanup whitespace in BLAKE2_SSE2_Compress64 2016-04-18 00:46:59 -04:00
Jeffrey Walton
d656f4404a Added Windows support for BLAKE2 2016-04-17 10:48:26 -04:00
Jeffrey Walton
30c1af2858 Added BLAKE2 Cryptographic Hash and Message Authentication Code 2016-04-17 03:06:28 -04:00