From cc3f6045a5b0a8566ef07cab9516e039890484d7 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 29 Jun 2010 00:46:23 +0000 Subject: [PATCH] fix incorrect SHA-256 hash on x64 when compiled with GCC with optimizations enabled --- trunk/c5/sha.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/sha.cpp b/trunk/c5/sha.cpp index e5dd9b7f..df947ad1 100644 --- a/trunk/c5/sha.cpp +++ b/trunk/c5/sha.cpp @@ -430,7 +430,7 @@ static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 #endif : "memory", "cc", "%eax" #if CRYPTOPP_BOOL_X64 - , "%rbx", "%r8" + , "%rbx", "%r8", "%r10" #endif ); #endif