summaryrefslogtreecommitdiff
path: root/speck.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-27 14:02:41 -0400
committerGitHub <noreply@github.com>2019-10-27 14:02:41 -0400
commit6da6b7f5ace3d342942a2f5aa39fe8542da798c7 (patch)
treef769e3146016ac59b7942d3707aff046ab4332c1 /speck.h
parente09bdbe5c47f13a172ea42d31c2d8938c0d333b4 (diff)
downloadcryptopp-git-6da6b7f5ace3d342942a2f5aa39fe8542da798c7.tar.gz
Enable Power7 for Simon and Speck (PR #909)
Diffstat (limited to 'speck.h')
-rw-r--r--speck.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/speck.h b/speck.h
index c7ea1835..5f6370cf 100644
--- a/speck.h
+++ b/speck.h
@@ -109,6 +109,11 @@ public:
std::string AlgorithmProvider() const;
+ /// \brief Provides input and output data alignment for optimal performance.
+ /// \return the input data alignment that provides optimal performance
+ /// \sa GetAlignment() and OptimalBlockSize()
+ unsigned int OptimalDataAlignment() const;
+
protected:
void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs &params);
};
@@ -172,6 +177,11 @@ public:
std::string AlgorithmProvider() const;
+ /// \brief Provides input and output data alignment for optimal performance.
+ /// \return the input data alignment that provides optimal performance
+ /// \sa GetAlignment() and OptimalBlockSize()
+ unsigned int OptimalDataAlignment() const;
+
protected:
void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs &params);
};