diff options
Diffstat (limited to 'src/lib/hash/sha1')
-rw-r--r-- | src/lib/hash/sha1/sha160.cpp | 5 | ||||
-rw-r--r-- | src/lib/hash/sha1/sha160.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/hash/sha1/sha160.cpp b/src/lib/hash/sha1/sha160.cpp index 6ebdba73f..fcca67341 100644 --- a/src/lib/hash/sha1/sha160.cpp +++ b/src/lib/hash/sha1/sha160.cpp @@ -10,6 +10,11 @@ namespace Botan { +std::unique_ptr<HashFunction> SHA_160::copy_state() const + { + return std::unique_ptr<HashFunction>(new SHA_160(*this)); + } + namespace SHA1_F { namespace { diff --git a/src/lib/hash/sha1/sha160.h b/src/lib/hash/sha1/sha160.h index f2ed61b64..fd3c77d46 100644 --- a/src/lib/hash/sha1/sha160.h +++ b/src/lib/hash/sha1/sha160.h @@ -21,6 +21,7 @@ class BOTAN_DLL SHA_160 final : public MDx_HashFunction std::string name() const override { return "SHA-160"; } size_t output_length() const override { return 20; } HashFunction* clone() const override { return new SHA_160; } + std::unique_ptr<HashFunction> copy_state() const override; void clear() override; |