diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-13 23:13:08 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-13 23:13:08 -0400 |
commit | 891b8db04a3a7f64050c3293c7b4e9f5b98f627c (patch) | |
tree | fbc001519b68cbbad7ea68d8811dcddb4eec78b7 /xts.h | |
parent | 8e8e95cea204319d99380cbedd0159746876355a (diff) | |
download | cryptopp-git-891b8db04a3a7f64050c3293c7b4e9f5b98f627c.tar.gz |
Tune XTS for PowerPC
Diffstat (limited to 'xts.h')
-rw-r--r-- | xts.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -78,6 +78,7 @@ public: {return GetBlockCipher().BlockSize()+1;}
unsigned int OptimalDataAlignment() const
{return GetBlockCipher().OptimalDataAlignment();}
+ void ThrowIfInvalidBlockSize(size_t length);
void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms = g_nullNameValuePairs);
IV_Requirement IVRequirement() const {return UNIQUE_IV;}
@@ -106,13 +107,14 @@ protected: const BlockCipher& GetTweakCipher() const
{return const_cast<XTS_ModeBase*>(this)->AccessTweakCipher();}
+ // Buffers are sized based on ParallelBlocks
SecByteBlock m_xregister;
SecByteBlock m_xworkspace;
enum {ParallelBlocks = 4};
};
-/// \brief XTS block cipher mode of operation implementation details
+/// \brief XTS block cipher mode of operation implementation
/// \tparam CIPHER BlockCipher derived class or type
/// \since Crypto++ 8.3
template <class CIPHER>
|