diff options
Diffstat (limited to 'libbutl/sha256.mxx')
-rw-r--r-- | libbutl/sha256.mxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libbutl/sha256.mxx b/libbutl/sha256.mxx index 2bb58b3..6d53ead 100644 --- a/libbutl/sha256.mxx +++ b/libbutl/sha256.mxx @@ -41,7 +41,7 @@ LIBBUTL_MODEXPORT namespace butl class LIBBUTL_SYMEXPORT sha256 { public: - sha256 (); + sha256 () {reset ();} // Append binary data. // @@ -113,6 +113,11 @@ LIBBUTL_MODEXPORT namespace butl bool empty () const {return empty_;} + // Reset to the default-constructed state. + // + void + reset (); + // Extract result. // // It can be obtained as either a 32-byte binary digest or as a 64- |