diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-05 08:47:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-05 08:47:17 +0200 |
commit | acadbbc9d82247c039cea12ea5e86c1f4841fdb9 (patch) | |
tree | 5a40294ec59e9964e692124cf629a6055f229a5c /libbutl/sha1.cxx | |
parent | 88adf3f7f2e9c6f1ea3c722ead41a5579b3292bf (diff) |
Add sha{1,256}::reset()
Diffstat (limited to 'libbutl/sha1.cxx')
-rw-r--r-- | libbutl/sha1.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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<SHA1_CTX*> (buf_)); + done_ = false; + empty_ = true; } void sha1:: |