diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
commit | 572fe07633123ce38abf28c6426356e37aef3a99 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /whrlpool.cpp | |
parent | 3e8c979ddc194e043567c036321e67c89f847362 (diff) | |
download | cryptopp-572fe07633123ce38abf28c6426356e37aef3a99.tar.gz |
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
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r-- | whrlpool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) |