From 12692c551ea89e33e1ade02c2432da34a320856b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 15 Jul 2014 17:56:09 -0700 Subject: SSE optimized Salsa20 -- anywhere from 20% to 50% faster than plain C version --- selftest.cpp | 88 ++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 53 insertions(+), 35 deletions(-) (limited to 'selftest.cpp') diff --git a/selftest.cpp b/selftest.cpp index 9e219db7..9d67ea48 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -136,6 +136,58 @@ static int testCrypto() std::cout << "[crypto] getSecureRandom: " << Utils::hex(buf1,64) << std::endl; } + std::cout << "[crypto] Testing Salsa20... "; std::cout.flush(); + for(unsigned int i=0;i<4;++i) { + for(unsigned int k=0;k