Skip to content

Commit

Permalink
avoid using hash keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
weidai11 committed Apr 8, 2004
1 parent 42ec076 commit c2f6c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iterhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CRYPTOPP_NO_VTABLE IteratedHashBase2 : public IteratedHashBase<T, BASE>
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);
Expand Down Expand Up @@ -100,7 +100,7 @@ class CRYPTOPP_NO_VTABLE IteratedHashWithStaticTransform

// *************************************************************

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);

Expand All @@ -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
}
Expand Down

0 comments on commit c2f6c37

Please sign in to comment.