diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-30 01:09:21 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-30 01:09:21 -0400 |
commit | 4c1b5472ccb2ba4d8016c6d6b8b2f8fad3088732 (patch) | |
tree | 6eab36f7b8ca2fe94efa7e29630343d669a49ddb /rijndael.h | |
parent | 5a0a2187f2e369868de7dfcac71e206e1b42a60b (diff) | |
download | cryptopp-git-4c1b5472ccb2ba4d8016c6d6b8b2f8fad3088732.tar.gz |
Cutover to SecByteBlock member for AES (Issue 302, CVE-2016-7544)
Diffstat (limited to 'rijndael.h')
-rw-r--r-- | rijndael.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -56,7 +56,13 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86
+ Enc() : m_aliasBlock(sizeToAllocate) {}
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
+ private:
+ static const size_t aliasPageSize;
+ static const size_t aliasBlockSize;
+ static const size_t sizeToAllocate;
+ SecByteBlock m_aliasBlock;
#endif
};
|