diff options
Diffstat (limited to 'src/lib/hash/blake2/blake2b.cpp')
-rw-r--r-- | src/lib/hash/blake2/blake2b.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/hash/blake2/blake2b.cpp b/src/lib/hash/blake2/blake2b.cpp index b478af106..85171b16b 100644 --- a/src/lib/hash/blake2/blake2b.cpp +++ b/src/lib/hash/blake2/blake2b.cpp @@ -208,6 +208,11 @@ HashFunction* Blake2b::clone() const return new Blake2b(m_output_bits); } +std::unique_ptr<HashFunction> Blake2b::copy_state() const + { + return std::unique_ptr<HashFunction>(new Blake2b(*this)); + } + void Blake2b::clear() { zeroise(m_H); |