diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-10-23 07:57:59 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-10-23 07:57:59 -0400 |
commit | 916c4484a2705fb296147355028fdb31cf0ea808 (patch) | |
tree | ba0119bda09cc617fcfd6a5bf8fa3ad05fd7313d /salsa.h | |
parent | 35b874b527f659be6dc19190cce4f59b833afd10 (diff) | |
download | cryptopp-git-916c4484a2705fb296147355028fdb31cf0ea808.tar.gz |
Add ChaCha SSE2 implementation
Thanks to Jack Lloyd and Botan for allowing us to use the implementation.
The numbers for SSE2 are very good. When compared with Salsa20 ASM the results are:
* Salsa20 2.55 cpb; ChaCha/20 2.90 cpb
* Salsa20/12 1.61 cpb; ChaCha/12 1.90 cpb
* Salsa20/8 1.34 cpb; ChaCha/8 1.5 cpb
Diffstat (limited to 'salsa.h')
-rw-r--r-- | salsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -41,6 +41,7 @@ protected: void CipherResynchronize(byte *keystreamBuffer, const byte *IV, size_t length);
bool CipherIsRandomAccess() const {return true;}
void SeekToIteration(lword iterationCount);
+
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
unsigned int GetAlignment() const;
unsigned int GetOptimalBlockSize() const;
|