summaryrefslogtreecommitdiff
path: root/xts.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-13 23:13:08 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-13 23:13:08 -0400
commit891b8db04a3a7f64050c3293c7b4e9f5b98f627c (patch)
treefbc001519b68cbbad7ea68d8811dcddb4eec78b7 /xts.h
parent8e8e95cea204319d99380cbedd0159746876355a (diff)
downloadcryptopp-git-891b8db04a3a7f64050c3293c7b4e9f5b98f627c.tar.gz
Tune XTS for PowerPC
Diffstat (limited to 'xts.h')
-rw-r--r--xts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xts.h b/xts.h
index 8b4234fe..67d258ea 100644
--- a/xts.h
+++ b/xts.h
@@ -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 &params = 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>