From 916c4484a2705fb296147355028fdb31cf0ea808 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 23 Oct 2018 07:57:59 -0400 Subject: 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 --- salsa.h | 1 + 1 file changed, 1 insertion(+) (limited to 'salsa.h') 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; -- cgit v1.2.1