diff options
author | Jack Lloyd <[email protected]> | 2017-05-22 22:18:21 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-05-22 22:18:21 -0400 |
commit | cb91be3967edab3688b744e150a98d96db89b2fd (patch) | |
tree | ad818dc31b2a6b2c1fb894cbf3cfcf2a70213bca /src/lib/hash/blake2/blake2b.cpp | |
parent | 22797129ff2f746f96d3725ab45e043c506664f3 (diff) | |
parent | b136d4e7ca350bb388a1a6d638b1010a2b1e5b73 (diff) |
Merge GH #1056 Add HashFunction::copy_state and port to OpenSSL 1.1.0
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); |