summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-29 00:46:23 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-29 00:46:23 +0000
commitb62a309d5c90c48d416b8a55106d5bb90baf7de7 (patch)
treedfc985e26dfa5844cd3d4885e5a3f36a2f6f487f /sha.cpp
parent15462d9cf97d8653658ab1e401f2d33624ea9813 (diff)
downloadcryptopp-b62a309d5c90c48d416b8a55106d5bb90baf7de7.tar.gz
fix incorrect SHA-256 hash on x64 when compiled with GCC with optimizations enabled
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@492 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha.cpp b/sha.cpp
index e5dd9b7..df947ad 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