summaryrefslogtreecommitdiff
path: root/tiger.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 /tiger.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'tiger.cpp')
-rw-r--r--tiger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tiger.cpp b/tiger.cpp
index 12519741..50dfb462 100644
--- a/tiger.cpp
+++ b/tiger.cpp
@@ -8,11 +8,11 @@
NAMESPACE_BEGIN(CryptoPP)
-void Tiger::Init()
+void Tiger::InitState(HashWordType *state)
{
- m_digest[0] = W64LIT(0x0123456789ABCDEF);
- m_digest[1] = W64LIT(0xFEDCBA9876543210);
- m_digest[2] = W64LIT(0xF096A5B4C3B2E187);
+ state[0] = W64LIT(0x0123456789ABCDEF);
+ state[1] = W64LIT(0xFEDCBA9876543210);
+ state[2] = W64LIT(0xF096A5B4C3B2E187);
}
void Tiger::TruncatedFinal(byte *hash, unsigned int size)