summaryrefslogtreecommitdiff
path: root/iterhash.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use std namespace for memset, memcpy, memcmp (#1204)Jeffrey Walton2023-04-151-3/+3
|
* Update comments in IterHashBase and friendsJeffrey Walton2018-07-211-5/+7
| | | | We also switched to "IsAligned<HashWordType>(input)". Using word64 was due to debug testing on Solaris (the alignment check is needed). Hard coding word64 should not have been checked in.
* Use blockSize throughout HashMultipleBlocksJeffrey Walton2018-07-201-4/+4
|
* Fix Tiger crash on Sparc (GH #690)Jeffrey Walton2018-07-201-7/+19
| | | | | Man, Sparc does not mess around with unaligned buffers. Without -xmemalign=4i the hardware wants 8-byte aligned word64's so it can use the high performance 64-bit move or add. Since we do not use -xmemalign we get the default behavior of either -xmemalgin=8i or -xmemalgin=8s. It shoul dnot matter to us since we removed unaligned data access at GH #682.
* Align input buffer in HashMultipleBlocksJeffrey Walton2018-07-201-7/+26
| | | | IteratedHashBase::Update aligns the buffer, but IteratedHashBase::HashBlock does not. It was causing a fair number of asserts to fire when the code was instrumented with alignment checks. Linux benchmarks shows the code does not run materially slower on i686 or x86_64.
* Back-off on Hash asserts (GH #652)Jeffrey Walton2018-05-051-17/+20
| | | | The asserts were a little aggressive and caused very noisy Debug runs. The library itself was one of the biggest offenders.
* Add CRYPTOPP_ASSERT to match Keccak and SHA3 (#654)Asen Kovachev2018-05-031-0/+1
| | | 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.
* Fix Windows compilation issues (by RaptorFactor) (#444)Marcel Raad2017-07-171-1/+1
| | | | | | | | | | | | * Fix compilation on Windows with /DUNICODE * Fix linking of fipstest for MSVC targeting ARM (__crt_debugger_hook is not available). * Fix build for Clang on Windows with optimizations on. * Fix a warning about a non-existant warning under Clang. * Fix compilation under Intel C++ 18.0 on Windows
* Avoid extra ByteReverse when using Intel SHA extensionsJeffrey Walton2017-05-261-3/+0
| | | | This gains about 0.6 cpb. SHA-1 is down to 1.7 to 1.9 cpb. SHA-256 is not affected
* Revert "Avoid extra ByteReverse"Jeffrey Walton2017-05-251-7/+4
| | | | This reverts commit 3b56ba118f34. It broke Tiger and SEAL. Arg...
* Add missing headerJeffrey Walton2017-05-251-0/+1
|
* Avoid extra ByteReverseJeffrey Walton2017-05-251-4/+7
| | | | This gains about 0.6 cpb. SHA-1 is down to 1.9 cpb. SHA-256 is not affected
* Change file preamble to include "originally written by Wei Dai"Jeffrey Walton2017-01-271-1/+1
| | | | We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
* Remove temporary array for SHA1. Whitespace and commentsJeffrey Walton2016-12-061-0/+3
|
* Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)Jeffrey Walton2016-09-161-2/+2
| | | | 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
* Cleared -Wcast-align (Issue 122)Jeffrey Walton2016-01-241-2/+2
|
* Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 ↵Jeffrey Walton2015-11-181-1/+1
| | | | (Coverity rollup)
* CRYPTOPP 5.6.3 RC6 checkinJeffrey Walton2015-11-051-167/+162
|
* Whitespace checkinJeffrey Walton2015-07-301-3/+3
|
* Cut-in CRYPTOPP_ASSERT in all remaining header and source filesJeffrey Walton2015-07-261-1/+1
|
* Added "trap.h" include for header and source files that assertJeffrey Walton2015-07-261-0/+1
|
* Cleared UBsan warnings under GCC 5.1Jeffrey Walton2015-07-171-3/+9
|
* fix memcpy with same src and dest (Peter Klotz)weidai2010-08-031-1/+2
|
* add x86/x64 assembly for SHA-256,weidai2009-03-101-6/+10
| | | | | add DEFAULT_CHANNEL and AAD_CHANNEL, fix macChannel for AuthenticatedEncryptionFilter
* changes for 5.6: weidai2009-03-021-5/+3
| | | | | | - added AuthenticatedSymmetricCipher interface class and Filter wrappers - added CCM, GCM (with SSE2 assembly), CMAC, and SEED - improved AES speed on x86 and x64 - removed WORD64_AVAILABLE; compiler 64-bit int support is now required
* fix compile with GCC 4.0.1 on MacOS X 64-bitweidai2008-12-221-0/+12
|
* reduce executable size when only hash functions are usedweidai2007-10-021-6/+1
|
* optimizationsweidai2007-04-161-29/+38
|
* update version number, port to Sun C++ 5.8weidai2006-12-181-0/+6
|
* port to MSVC .NET 2005 beta 2weidai2005-07-121-8/+8
|
* fix gcc 3.4.2 compileweidai2004-10-171-1/+1
|
* changes related to the next FIPS validationweidai2004-09-031-6/+27
|
* add SHA-224weidai2004-07-231-3/+10
|
* merge in 5.0.4 changes (exclude DES and SHA-2 from DLL),weidai2003-07-101-5/+0
| | | | attempt (failed) to build DLL with GCC
* create DLL version, fix GetNextIV() bug in CTR and OFB modesweidai2003-07-041-15/+5
|
* various changes for 5.1weidai2003-03-201-5/+4
|
* Initial revisionweidai2002-10-041-0/+123