summaryrefslogtreecommitdiff
path: root/blowfish.cpp
diff options
context:
space:
mode:
authorRăzvan Cojocaru <36885180+rzvncj@users.noreply.github.com>2019-10-03 11:54:34 +0300
committerJeffrey Walton <noloader@gmail.com>2019-10-03 04:54:34 -0400
commitfd2cbd39525834762d4a2d35da2f7595c8ec20f4 (patch)
tree1277c4016ba62cc2ec3c23892a6225819ab75a6b /blowfish.cpp
parent366fdce86f968500994d9fb81bd0d37053a01126 (diff)
downloadcryptopp-git-fd2cbd39525834762d4a2d35da2f7595c8ec20f4.tar.gz
Fix -Wundefined-var-template warning in Blowfish (PR #888)
Diffstat (limited to 'blowfish.cpp')
-rw-r--r--blowfish.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/blowfish.cpp b/blowfish.cpp
index c20643f1..5880aa4b 100644
--- a/blowfish.cpp
+++ b/blowfish.cpp
@@ -6,6 +6,12 @@
NAMESPACE_BEGIN(CryptoPP)
+extern template const word32 Blowfish_Base<Blowfish_Info, BigEndian>::p_init[Blowfish_Info::ROUNDS+2];
+extern template const word32 Blowfish_Base<Blowfish_Info, BigEndian>::s_init[4*256];
+
+extern template const word32 Blowfish_Base<BlowfishCompat_Info, LittleEndian>::p_init[BlowfishCompat_Info::ROUNDS+2];
+extern template const word32 Blowfish_Base<BlowfishCompat_Info, LittleEndian>::s_init[4*256];
+
template<class Info, class ByteOrder>
void Blowfish_Base<Info, ByteOrder>::UncheckedSetKey(const byte *key_string, unsigned int keylength, const NameValuePairs &)
{