summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-06-29 00:46:23 +0000
committerweidai <weidai11@users.noreply.github.com>2010-06-29 00:46:23 +0000
commit9a759e4492cfe56b8aea52e0ab7cd4d2bb31b229 (patch)
treedfc985e26dfa5844cd3d4885e5a3f36a2f6f487f /sha.cpp
parent7f21596d107165902d648d8decde21f19947d5af (diff)
downloadcryptopp-git-9a759e4492cfe56b8aea52e0ab7cd4d2bb31b229.tar.gz
fix incorrect SHA-256 hash on x64 when compiled with GCC with optimizations enabled
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 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