diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-08-13 04:31:17 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-08-13 04:31:17 -0400 |
commit | f02bf91ee50877a41aa2f201f4840aee9a8dcc55 (patch) | |
tree | ef832ea7ccdafca7df3a64e837e43cff05954461 /gcm.h | |
parent | 95ee8975b4fcc132c839dfa47bd80dbaeee7ed54 (diff) | |
download | cryptopp-git-f02bf91ee50877a41aa2f201f4840aee9a8dcc55.tar.gz |
Revert 95ee8975b4fc and 7d21cdd54e95 (Issue 408)
This broke some OS X builds. We need more testing. Ugh...
Diffstat (limited to 'gcm.h')
-rw-r--r-- | gcm.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -74,9 +74,9 @@ protected: virtual GCM_TablesOption GetTablesOption() const =0;
const BlockCipher & GetBlockCipher() const {return const_cast<GCM_Base *>(this)->AccessBlockCipher();};
- byte *HashBuffer() {return m_buffer+GetBlockCipher().BlockSize();}
- byte *HashKey() {return m_buffer+2*GetBlockCipher().BlockSize();}
- byte *MulTable() {return m_buffer+3*GetBlockCipher().BlockSize();}
+ byte *HashBuffer() {return m_buffer+REQUIRED_BLOCKSIZE;}
+ byte *HashKey() {return m_buffer+2*REQUIRED_BLOCKSIZE;}
+ byte *MulTable() {return m_buffer+3*REQUIRED_BLOCKSIZE;}
inline void ReverseHashBufferIfNeeded();
class CRYPTOPP_DLL GCTR : public CTR_Mode_ExternalCipher::Encryption
|