summaryrefslogtreecommitdiff
path: root/rijndael.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-30 01:09:21 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-30 01:09:21 -0400
commit4c1b5472ccb2ba4d8016c6d6b8b2f8fad3088732 (patch)
tree6eab36f7b8ca2fe94efa7e29630343d669a49ddb /rijndael.h
parent5a0a2187f2e369868de7dfcac71e206e1b42a60b (diff)
downloadcryptopp-git-4c1b5472ccb2ba4d8016c6d6b8b2f8fad3088732.tar.gz
Cutover to SecByteBlock member for AES (Issue 302, CVE-2016-7544)
Diffstat (limited to 'rijndael.h')
-rw-r--r--rijndael.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rijndael.h b/rijndael.h
index 50fdf1eb..a5c61994 100644
--- a/rijndael.h
+++ b/rijndael.h
@@ -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
};