summaryrefslogtreecommitdiff
path: root/strciphr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert AltiVec and Power8 commitsJeffrey Walton2017-09-051-21/+12
| | | | | The strategy of "cleanup under-aligned buffers" is not scaling well. Corner cases are still turing up. The library has some corner-case breaks, like old 32-bit Intels. And it still has not solved the AltiVec and Power8 alignment problems. For now we are backing out the changes and investigating other strategies
* Fixup under-aligned buffers for stream ciphers on AltiVec and Power8Jeffrey Walton2017-09-041-12/+21
| | | | | | | | This commit supports the upcoming AltiVec and Power8 processor support for stream ciphers. This commit affects GlobalRNG() most because its an AES-based generator. The commit favors AlignedSecByteBlock over SecByteBlock in places where messages are handled on the AltiVec and Power8 processor data paths. The data paths include all block cipher modes of operation, and some filters like FilterWithBufferedInput. Intel and ARM processors are tolerant of under-aligned buffers when using crypto instructions. AltiVec and Power8 are less tolerant, and they simply ignore the three low-order bits to ensure an address is aligned. The AltiVec and Power8 have caused a fair number of wild writes on the stack and in the heap. Testing on a 64-bit Intel Skylake show a marked improvement in performance. We suspect GCC is generating better code since it knows the alignment of the pointers, and does not have to emit fixup code for under-aligned and mis-aligned data. Testing on an mid-2000s 32-bit VIA C7-D with SSE2+SSSE3 showed no improvement, and no performance was lost.
* 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
* Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)Jeffrey Walton2016-09-161-4/+4
| | | | 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
* CRYPTOPP 5.6.3 RC6 checkinJeffrey Walton2015-11-051-253/+252
|
* Cut-in CRYPTOPP_ASSERT in all remaining header and source filesJeffrey Walton2015-07-261-4/+4
|
* Added "trap.h" include for header and source files that assertJeffrey Walton2015-07-261-0/+1
|
* changes for 5.6: weidai2009-03-021-35/+31
| | | | | | - 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
* add IncorporateEntropy and GenerateIntoBufferedTransformation to RNG interfaceweidai2007-05-041-16/+0
|
* SSE2 optimizationsweidai2007-04-151-16/+64
|
* update version number, port to Sun C++ 5.8weidai2006-12-181-0/+29
|
* port to Borland C++Builder 2006weidai2006-12-141-1/+1
|
* port to MSVC .NET 2005 beta 2weidai2005-07-121-6/+6
|
* port to GCC 3.4weidai2004-06-191-7/+7
|
* add CFB mode FIPS variantweidai2004-04-291-0/+2
|
* fix bugs in 64-bit CPU supportweidai2003-07-251-1/+1
|
* create DLL version, fix GetNextIV() bug in CTR and OFB modesweidai2003-07-041-0/+5
|
* fix warnings for VC7 and GCCweidai2003-03-201-1/+1
|
* add script-driven testingweidai2002-12-061-1/+1
|
* Initial revisionweidai2002-10-041-0/+188