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 --- whrlpool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'whrlpool.cpp') diff --git a/whrlpool.cpp b/whrlpool.cpp index e9207e6..f2462f2 100644 --- a/whrlpool.cpp +++ b/whrlpool.cpp @@ -62,10 +62,10 @@ void Whirlpool_TestInstantiations() Whirlpool x; } -void Whirlpool::Init() +void Whirlpool::InitState(HashWordType *state) { - m_digest[0] = m_digest[1] = m_digest[2] = m_digest[3] = - m_digest[4] = m_digest[5] = m_digest[6] = m_digest[7] = 0; + state[0] = state[1] = state[2] = state[3] = + state[4] = state[5] = state[6] = state[7] = 0; } void Whirlpool::TruncatedFinal(byte *hash, unsigned int size) -- cgit v1.2.1