From 572fe07633123ce38abf28c6426356e37aef3a99 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 Jul 2003 00:17:37 +0000 Subject: create DLL version, fix GetNextIV() bug in CTR and OFB modes git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@87 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- iterhash.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'iterhash.cpp') diff --git a/iterhash.cpp b/iterhash.cpp index 00cc12b..7e1187f 100644 --- a/iterhash.cpp +++ b/iterhash.cpp @@ -1,18 +1,14 @@ // iterhash.cpp - written and placed in the public domain by Wei Dai #include "pch.h" + +#ifndef CRYPTOPP_IMPORTS + #include "iterhash.h" #include "misc.h" NAMESPACE_BEGIN(CryptoPP) -template -IteratedHashBase::IteratedHashBase(unsigned int blockSize, unsigned int digestSize) - : m_data(blockSize/sizeof(T)), m_digest(digestSize/sizeof(T)) - , m_countHi(0), m_countLo(0) -{ -} - template void IteratedHashBase::Update(const byte *input, unsigned int len) { HashWordType tmp = m_countLo; @@ -111,12 +107,6 @@ template void IteratedHashBase::Restart() Init(); } -#ifdef WORD64_AVAILABLE -template class IteratedHashBase; -template class IteratedHashBase; -#endif - -template class IteratedHashBase; -template class IteratedHashBase; - NAMESPACE_END + +#endif -- cgit v1.2.1