diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-06-29 21:02:53 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-06-29 21:02:53 -0400 |
commit | e18de4d5f9960dbad9587de25124d0c3fbefa9ba (patch) | |
tree | 2fa6050431197fb3210365bbc1f753262bb553cd /sha.cpp | |
parent | 9a75d09ca48becc2e0dc675b34b0c16bfb5da7c1 (diff) | |
download | cryptopp-git-e18de4d5f9960dbad9587de25124d0c3fbefa9ba.tar.gz |
Re-engage SSE2 ASM for SHA-256 (GH# 674)
I'm not usre where exactly the break occured, but it was probably due to the BASE+SIMD rewrite. Thanks to tesbayda for tracking it down.
Diffstat (limited to 'sha.cpp')
-rw-r--r-- | sha.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -710,7 +710,7 @@ size_t SHA256::HashMultipleBlocks(const word32 *input, size_t length) return length & (SHA256::BLOCKSIZE - 1);
}
#endif
-#if CRYPTOPP_SSE2_ASM_AVAILABLE
+#if CRYPTOPP_SSE2_ASM_AVAILABLE || CRYPTOPP_X64_MASM_AVAILABLE
if (HasSSE2())
{
const size_t res = length & (SHA256::BLOCKSIZE - 1);
|