summaryrefslogtreecommitdiff
path: root/salsa.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-23 07:57:59 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-23 07:57:59 -0400
commit916c4484a2705fb296147355028fdb31cf0ea808 (patch)
treeba0119bda09cc617fcfd6a5bf8fa3ad05fd7313d /salsa.h
parent35b874b527f659be6dc19190cce4f59b833afd10 (diff)
downloadcryptopp-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/salsa.h b/salsa.h
index f86bb61b..7765c919 100644
--- a/salsa.h
+++ b/salsa.h
@@ -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;