summaryrefslogtreecommitdiff
path: root/lea.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-06-23 14:19:18 -0400
committerJeffrey Walton <noloader@gmail.com>2018-06-23 14:19:18 -0400
commitd9797c414a95403364db9f834a2e59a7ac41e5d8 (patch)
treeb764671f4beb1e4209756ffb08b001f2f617949b /lea.cpp
parent2d0d87b57ad227324ac59fee0ac58808050cc239 (diff)
downloadcryptopp-git-d9797c414a95403364db9f834a2e59a7ac41e5d8.tar.gz
Add CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS for LEA
Diffstat (limited to 'lea.cpp')
-rw-r--r--lea.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lea.cpp b/lea.cpp
index 122313da..75de3556 100644
--- a/lea.cpp
+++ b/lea.cpp
@@ -567,7 +567,9 @@ extern size_t LEA_Dec_AdvancedProcessBlocks_SSSE3(const word32* subKeys, size_t
# endif
# if (CRYPTOPP_ARM_NEON_AVAILABLE)
+# if (CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS)
extern void LEA_SplatKeys_NEON(SecBlock<word32>& rkeys);
+# endif // CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS
extern size_t LEA_Enc_AdvancedProcessBlocks_NEON(const word32* subKeys, size_t rounds,
const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags);
@@ -616,8 +618,10 @@ void LEA::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength, con
LEA_SplatKeys_SSSE3(m_rkey);
#endif
#if (CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS) && (CRYPTOPP_ARM_NEON_AVAILABLE)
+# if (CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS)
if (HasNEON())
LEA_SplatKeys_NEON(m_rkey);
+# endif // CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS
#endif
}