summaryrefslogtreecommitdiff
path: root/gost.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-06-18 00:51:12 +0000
committerweidai <weidai11@users.noreply.github.com>2010-06-18 00:51:12 +0000
commit5a9739c92223101c2b7073e051397e8fa51ef071 (patch)
treee30885d79424f86b8099213fe53efebc19a55e3d /gost.cpp
parent1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff)
downloadcryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'gost.cpp')
-rw-r--r--gost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gost.cpp b/gost.cpp
index 1775238d..bbd82975 100644
--- a/gost.cpp
+++ b/gost.cpp
@@ -27,7 +27,7 @@ const byte GOST::Base::sBox[8][16]={
{14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7 }};
*/
-bool GOST::Base::sTableCalculated = false;
+volatile bool GOST::Base::sTableCalculated = false;
word32 GOST::Base::sTable[4][256];
void GOST::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &)