aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/checksum/adler32/adler32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/checksum/adler32/adler32.cpp')
-rw-r--r--src/lib/hash/checksum/adler32/adler32.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/hash/checksum/adler32/adler32.cpp b/src/lib/hash/checksum/adler32/adler32.cpp
index b7f6356c4..329ba99a8 100644
--- a/src/lib/hash/checksum/adler32/adler32.cpp
+++ b/src/lib/hash/checksum/adler32/adler32.cpp
@@ -78,4 +78,9 @@ void Adler32::final_result(uint8_t output[])
clear();
}
+std::unique_ptr<HashFunction> Adler32::copy_state() const
+ {
+ return std::unique_ptr<HashFunction>(new Adler32(*this));
+ }
+
}