summaryrefslogtreecommitdiff
path: root/whrlpool.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
commitf278895908e663a6a5a2c1f63e5523c5004f5d20 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /whrlpool.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r--whrlpool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp
index e9207e67..f2462f2c 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)