summaryrefslogtreecommitdiff
path: root/iterhash.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-08 01:23:48 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-04-08 01:23:48 +0000
commit4e91888d8cbace3f1ce41c359253563ca83547cc (patch)
tree517579efd9a831e8a0ed64ee95f28db84eb1e11e /iterhash.h
parentbfbe78e6952e99e7406af3bfede277d8292eb819 (diff)
downloadcryptopp-4e91888d8cbace3f1ce41c359253563ca83547cc.tar.gz
avoid using hash keyword
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@154 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'iterhash.h')
-rw-r--r--iterhash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/iterhash.h b/iterhash.h
index 5adecd3..7769bad 100644
--- a/iterhash.h
+++ b/iterhash.h
@@ -61,7 +61,7 @@ public:
ConditionalByteReverse(B::ToEnum(), out, in, byteCount);
}
- void TruncatedFinal(byte *hash, unsigned int size);
+ void TruncatedFinal(byte *digest, unsigned int size);
protected:
void HashBlock(const HashWordType *input);
@@ -100,7 +100,7 @@ protected:
// *************************************************************
-template <class T, class B, class BASE> void IteratedHashBase2<T, B, BASE>::TruncatedFinal(byte *hash, unsigned int size)
+template <class T, class B, class BASE> void IteratedHashBase2<T, B, BASE>::TruncatedFinal(byte *digest, unsigned int size)
{
ThrowIfInvalidTruncatedSize(size);
@@ -112,7 +112,7 @@ template <class T, class B, class BASE> void IteratedHashBase2<T, B, BASE>::Trun
HashEndianCorrectedBlock(m_data);
CorrectEndianess(m_digest, m_digest, DigestSize());
- memcpy(hash, m_digest, size);
+ memcpy(digest, m_digest, size);
Restart(); // reinit for next use
}