diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-10-28 06:09:46 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-10-28 06:09:46 -0400 |
commit | 1ff6f39ec654cd5690a43a3a2e15d668afe5dd2b (patch) | |
tree | e9f4c391e83a34f293a7d7e1e76df2e293e46d76 /kalynatab.cpp | |
parent | 1d0c6dd9161a22dddba7ae1197bb1238346cdf09 (diff) | |
download | cryptopp-git-1ff6f39ec654cd5690a43a3a2e15d668afe5dd2b.tar.gz |
Add proper declaration for Kalyna tables; and split from definitions
Diffstat (limited to 'kalynatab.cpp')
-rw-r--r-- | kalynatab.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kalynatab.cpp b/kalynatab.cpp index 646643a0..d4ad171c 100644 --- a/kalynatab.cpp +++ b/kalynatab.cpp @@ -7,7 +7,11 @@ NAMESPACE_BEGIN(CryptoPP)
NAMESPACE_BEGIN(KalynaTab)
-CRYPTOPP_TABLE
+extern const word64 T[8][256]; // Columns
+extern const word64 IT[8][256]; // Inverse
+extern const byte S[4][256]; // Substitution
+extern const byte IS[4][256]; // Inverse
+
const word64 T[8][256] =
{
{
@@ -540,7 +544,6 @@ const word64 T[8][256] = }
};
-CRYPTOPP_TABLE
const word64 IT[8][256] =
{
{
@@ -1073,7 +1076,6 @@ const word64 IT[8][256] = }
};
-CRYPTOPP_TABLE
const byte S[4][256] =
{
{
@@ -1150,7 +1152,6 @@ const byte S[4][256] = }
};
-CRYPTOPP_TABLE
const byte IS[4][256] =
{
{
|