From f2f2fe7610f196cd4c5f51b5e588558762448d3c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 22 May 2017 13:31:37 -0400 Subject: Add HashFunction::copy_state See GH #1037 --- src/lib/hash/md5/md5.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/hash/md5/md5.cpp') diff --git a/src/lib/hash/md5/md5.cpp b/src/lib/hash/md5/md5.cpp index 0612ba956..174443a67 100644 --- a/src/lib/hash/md5/md5.cpp +++ b/src/lib/hash/md5/md5.cpp @@ -9,6 +9,11 @@ namespace Botan { +std::unique_ptr MD5::copy_state() const + { + return std::unique_ptr(new MD5(*this)); + } + namespace { /* -- cgit v1.2.3