diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-12-01 10:39:43 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-12-01 10:39:43 -0500 |
commit | 90d957c09b6c19027ce96288c42e70fee32b3621 (patch) | |
tree | 6f42ab94268e88d7445fd7da61b29a9cea181f04 /tiger.cpp | |
parent | 49de1806787830f7518c6cad41a41178b6eda26a (diff) | |
download | cryptopp-git-90d957c09b6c19027ce96288c42e70fee32b3621.tar.gz |
Update documentation
Diffstat (limited to 'tiger.cpp')
-rw-r--r-- | tiger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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
}
|