From 5b3f486767ad8d9f628cba6a140be090103b6d30 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 7 Jan 2011 01:38:48 +0000 Subject: [PATCH] fix for https://sourceforge.net/apps/trac/cryptopp/ticket/6 --- rijndael.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rijndael.cpp b/rijndael.cpp index 608b9d30..0081e228 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -349,7 +349,11 @@ void Rijndael::Base::UncheckedSetKey(const byte *userKey, unsigned int keylen, c void Rijndael::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const { #if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) || CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE +#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) if (HasSSE2()) +#else + if (HasAESNI()) +#endif { Rijndael::Enc::AdvancedProcessBlocks(inBlock, xorBlock, outBlock, 16, 0); return;