diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-03-13 13:26:26 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-03-13 13:26:26 +0000 |
commit | 80a9a45ad09512f6d2dd4f806ff774d79fcda5df (patch) | |
tree | a96149623a07039ebba65712864d3f93857d1dea /cryptlib.h | |
parent | 8d54ba7ff24ec5e02f86a1fc5d9cac35ec9c6a52 (diff) | |
download | cryptopp-git-80a9a45ad09512f6d2dd4f806ff774d79fcda5df.tar.gz |
add missing Ref() function
Diffstat (limited to 'cryptlib.h')
-rw-r--r-- | cryptlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |