summaryrefslogtreecommitdiff
path: root/panama.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-05 18:29:44 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-05 18:29:44 +0000
commit7ae0bd42ae6dc01e6516d7be946faa8b9947c923 (patch)
tree815b3a4082fcff80f39864538fd1baa08e44f28a /panama.cpp
parent6a8dddea4e0a89e44d15a2a28a5398bb67cafdda (diff)
downloadcryptopp-7ae0bd42ae6dc01e6516d7be946faa8b9947c923.tar.gz
fix compile on Turbo C++ 2006
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@365 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'panama.cpp')
-rw-r--r--panama.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/panama.cpp b/panama.cpp
index a60e167..6fecd9b 100644
--- a/panama.cpp
+++ b/panama.cpp
@@ -359,15 +359,16 @@ void Panama<B>::Iterate(size_t count, const word32 *p, word32 *z, const word32 *
m_state[17] = bstart;
}
+namespace Weak {
template <class B>
-size_t Weak::PanamaHash<B>::HashMultipleBlocks(const word32 *input, size_t length)
+size_t PanamaHash<B>::HashMultipleBlocks(const word32 *input, size_t length)
{
this->Iterate(length / this->BLOCKSIZE, input);
return length % this->BLOCKSIZE;
}
template <class B>
-void Weak::PanamaHash<B>::TruncatedFinal(byte *hash, size_t size)
+void PanamaHash<B>::TruncatedFinal(byte *hash, size_t size)
{
this->ThrowIfInvalidTruncatedSize(size);
@@ -384,6 +385,7 @@ void Weak::PanamaHash<B>::TruncatedFinal(byte *hash, size_t size)
this->Restart(); // reinit for next use
}
+}
template <class B>
void PanamaCipherPolicy<B>::CipherSetKey(const NameValuePairs &params, const byte *key, size_t length)