diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-12 07:05:18 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-12 07:05:18 -0400 |
commit | e580ed588a1c8372a3e54f8081356f64cce53888 (patch) | |
tree | e43f679c2ce20a075862e335760c5559eef08a79 /rijndael.cpp | |
parent | 7eb0535a98f2c3548ef93d62f7a00de138bac4bc (diff) | |
download | cryptopp-git-e580ed588a1c8372a3e54f8081356f64cce53888.tar.gz |
Disable same buffer for in and out on ARM A-32 (GH #683)
Diffstat (limited to 'rijndael.cpp')
-rw-r--r-- | rijndael.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rijndael.cpp b/rijndael.cpp index 1553e02e..284135ce 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -253,6 +253,10 @@ ANONYMOUS_NAMESPACE_END unsigned int Rijndael::Base::OptimalDataAlignment() const
{
// CFB mode performs an extra memcpy if buffer is not aligned.
+#if (CRYPTOPP_AESNI_AVAILABLE)
+ if (HasAESNI())
+ return 1;
+#endif
#if (CRYPTOPP_ARM_AES_AVAILABLE)
if (HasAES())
return 1;
|