add missing Ref() function

pull/2/head
weidai 2006-03-13 13:26:26 +00:00
parent 8d54ba7ff2
commit 80a9a45ad0
1 changed files with 5 additions and 0 deletions

View File

@ -521,6 +521,11 @@ public:
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE HashTransformation : public Algorithm
{
public:
//! return a reference to this object,
/*! This function is useful for passing a temporary HashTransformation object to a
function that takes a non-const reference. */
HashTransformation& Ref() {return *this;}
//! process more input
virtual void Update(const byte *input, size_t length) =0;