summaryrefslogtreecommitdiff
path: root/tiger.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-12-01 10:39:43 -0500
committerJeffrey Walton <noloader@gmail.com>2019-12-01 10:39:43 -0500
commit90d957c09b6c19027ce96288c42e70fee32b3621 (patch)
tree6f42ab94268e88d7445fd7da61b29a9cea181f04 /tiger.cpp
parent49de1806787830f7518c6cad41a41178b6eda26a (diff)
downloadcryptopp-git-90d957c09b6c19027ce96288c42e70fee32b3621.tar.gz
Update documentation
Diffstat (limited to 'tiger.cpp')
-rw-r--r--tiger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tiger.cpp b/tiger.cpp
index 9b35a8c7..e47a6a32 100644
--- a/tiger.cpp
+++ b/tiger.cpp
@@ -34,10 +34,10 @@ void Tiger::InitState(HashWordType *state)
state[2] = W64LIT(0xF096A5B4C3B2E187);
}
-void Tiger::TruncatedFinal(byte *hash, size_t size)
+void Tiger::TruncatedFinal(byte *digest, size_t digestSize)
{
CRYPTOPP_ASSERT(hash != NULLPTR);
- ThrowIfInvalidTruncatedSize(size);
+ ThrowIfInvalidTruncatedSize(digestSize);
PadLastBlock(56, 0x01);
CorrectEndianess(m_data, m_data, 56);
@@ -46,7 +46,7 @@ void Tiger::TruncatedFinal(byte *hash, size_t size)
Transform(m_state, m_data);
CorrectEndianess(m_state, m_state, DigestSize());
- memcpy(hash, m_state, size);
+ memcpy(digest, m_state, digestSize);
Restart(); // reinit for next use
}