~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to gcm.h

  • Committer: weidai
  • Date: 2010-06-18 00:51:12 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:482
add "volatile" to prevent compiler optimizing away code

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        byte *HashKey() {return m_buffer+2*REQUIRED_BLOCKSIZE;}
65
65
        byte *MulTable() {return m_buffer+3*REQUIRED_BLOCKSIZE;}
66
66
 
67
 
        class GCTR : public CTR_Mode_ExternalCipher::Encryption
 
67
        class CRYPTOPP_DLL GCTR : public CTR_Mode_ExternalCipher::Encryption
68
68
        {
69
69
        protected:
70
70
                void IncrementCounterBy256();
72
72
 
73
73
        GCTR m_ctr;
74
74
        static word16 s_reductionTable[256];
75
 
        static bool s_reductionTableInitialized;
 
75
        static volatile bool s_reductionTableInitialized;
76
76
        enum {REQUIRED_BLOCKSIZE = 16, HASH_BLOCKSIZE = 16};
77
77
};
78
78