From 9a759e4492cfe56b8aea52e0ab7cd4d2bb31b229 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 --- sha.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha.cpp b/sha.cpp index e5dd9b7f..df947ad1 100644 --- a/sha.cpp +++ b/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