diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-05-05 18:29:44 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-05-05 18:29:44 +0000 |
commit | f018ac354a29fcac4dea875537a6920a3b3f7797 (patch) | |
tree | 815b3a4082fcff80f39864538fd1baa08e44f28a /panama.cpp | |
parent | 31b3f6c3a86650306fa5ad94c8c92509f073592c (diff) | |
download | cryptopp-git-f018ac354a29fcac4dea875537a6920a3b3f7797.tar.gz |
fix compile on Turbo C++ 2006
Diffstat (limited to 'panama.cpp')
-rw-r--r-- | panama.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 ¶ms, const byte *key, size_t length) |