diff options
Diffstat (limited to 'libbutl/sha256.cxx')
-rw-r--r-- | libbutl/sha256.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbutl/sha256.cxx b/libbutl/sha256.cxx index 31730a2..65cd18c 100644 --- a/libbutl/sha256.cxx +++ b/libbutl/sha256.cxx @@ -65,11 +65,12 @@ using namespace std; namespace butl { - sha256:: - sha256 () - : done_ (false), empty_ (true) + void sha256:: + reset () { SHA256_Init (reinterpret_cast<SHA256_CTX*> (buf_)); + done_ = false; + empty_ = true; } void sha256:: |