From acadbbc9d82247c039cea12ea5e86c1f4841fdb9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Oct 2019 08:47:17 +0200 Subject: Add sha{1,256}::reset() --- libbutl/sha1.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbutl/sha1.cxx') diff --git a/libbutl/sha1.cxx b/libbutl/sha1.cxx index 3c1cbdc..d17119f 100644 --- a/libbutl/sha1.cxx +++ b/libbutl/sha1.cxx @@ -71,11 +71,12 @@ using namespace std; namespace butl { - sha1:: - sha1 () - : done_ (false), empty_ (true) + void sha1:: + reset () { SHA1_Init (reinterpret_cast (buf_)); + done_ = false; + empty_ = true; } void sha1:: -- cgit v1.1