summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 9b173239..46ac0beb 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -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;