diff options
author | weidai <weidai11@users.noreply.github.com> | 2010-06-18 00:51:12 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2010-06-18 00:51:12 +0000 |
commit | 5a9739c92223101c2b7073e051397e8fa51ef071 (patch) | |
tree | e30885d79424f86b8099213fe53efebc19a55e3d /gcm.h | |
parent | 1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff) | |
download | cryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz |
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'gcm.h')
-rw-r--r-- | gcm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,7 +64,7 @@ protected: byte *HashKey() {return m_buffer+2*REQUIRED_BLOCKSIZE;}
byte *MulTable() {return m_buffer+3*REQUIRED_BLOCKSIZE;}
- class GCTR : public CTR_Mode_ExternalCipher::Encryption
+ class CRYPTOPP_DLL GCTR : public CTR_Mode_ExternalCipher::Encryption
{
protected:
void IncrementCounterBy256();
@@ -72,7 +72,7 @@ protected: GCTR m_ctr;
static word16 s_reductionTable[256];
- static bool s_reductionTableInitialized;
+ static volatile bool s_reductionTableInitialized;
enum {REQUIRED_BLOCKSIZE = 16, HASH_BLOCKSIZE = 16};
};
|