summaryrefslogtreecommitdiff
path: root/rijndael.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-11 06:59:44 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-11 06:59:44 -0400
commit3ff7d7f0286af27e04bff8df3bde9726b1d91e66 (patch)
treea88531e9f5f10800659a05ea35a0c22fbf910833 /rijndael.h
parentbdac2de36ea56953fc58cb5eccfc66a28bcbe0cc (diff)
downloadcryptopp-git-3ff7d7f0286af27e04bff8df3bde9726b1d91e66.tar.gz
Add ARM AES asm implementation from Cryptogams (GH #683)
Diffstat (limited to 'rijndael.h')
-rw-r--r--rijndael.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rijndael.h b/rijndael.h
index 9a110bb0..3e051834 100644
--- a/rijndael.h
+++ b/rijndael.h
@@ -45,6 +45,7 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat
public:
void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs &params);
std::string AlgorithmProvider() const;
+ unsigned int OptimalDataAlignment() const;
protected:
static void FillEncTable();
@@ -57,7 +58,7 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat
static const word32 rcon[];
unsigned int m_rounds;
- FixedSizeAlignedSecBlock<word32, 4*15> m_key;
+ SecBlock<word32, AllocatorWithCleanup<word32, true> > m_key;
mutable SecByteBlock m_aliasBlock;
};