summaryrefslogtreecommitdiff
path: root/lea.h
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.h
parent2d0d87b57ad227324ac59fee0ac58808050cc239 (diff)
downloadcryptopp-git-d9797c414a95403364db9f834a2e59a7ac41e5d8.tar.gz
Add CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS for LEA
Diffstat (limited to 'lea.h')
-rw-r--r--lea.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lea.h b/lea.h
index 02fccd45..5b9f74b0 100644
--- a/lea.h
+++ b/lea.h
@@ -19,6 +19,14 @@
# define CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS 1
#endif
+// Define this if you want to pre-splat the round key table
+// for NEON and Aarch64. Pre-splatting the round key increases
+// performance by about 0.7 cpb on ARM server boards like an
+// AMD Opteron A1100. However, it crushes performance on ARM
+// dev-boards like LeMaker HiKey and Pine64. HiKey and Pine64
+// run about 8 cpb slower when pre-splatting the round keys.
+// # define CRYPTOPP_LEA_ARM_SPLAT_ROUNDKEYS 1
+
NAMESPACE_BEGIN(CryptoPP)
/// \brief LEA block cipher information