diff options
Diffstat (limited to 'src/lib/hash/rmd160')
-rw-r--r-- | src/lib/hash/rmd160/rmd160.cpp | 5 | ||||
-rw-r--r-- | src/lib/hash/rmd160/rmd160.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/hash/rmd160/rmd160.cpp b/src/lib/hash/rmd160/rmd160.cpp index 8d190a74f..95f96c281 100644 --- a/src/lib/hash/rmd160/rmd160.cpp +++ b/src/lib/hash/rmd160/rmd160.cpp @@ -9,6 +9,11 @@ namespace Botan { +std::unique_ptr<HashFunction> RIPEMD_160::copy_state() const + { + return std::unique_ptr<HashFunction>(new RIPEMD_160(*this)); + } + namespace { /* diff --git a/src/lib/hash/rmd160/rmd160.h b/src/lib/hash/rmd160/rmd160.h index 9e2d1de87..f2b57ef33 100644 --- a/src/lib/hash/rmd160/rmd160.h +++ b/src/lib/hash/rmd160/rmd160.h @@ -21,6 +21,7 @@ class BOTAN_DLL RIPEMD_160 final : public MDx_HashFunction std::string name() const override { return "RIPEMD-160"; } size_t output_length() const override { return 20; } HashFunction* clone() const override { return new RIPEMD_160; } + std::unique_ptr<HashFunction> copy_state() const override; void clear() override; |