diff options
Diffstat (limited to 'libbutl/sha1.mxx')
-rw-r--r-- | libbutl/sha1.mxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbutl/sha1.mxx b/libbutl/sha1.mxx index a3b75d7..ea4d240 100644 --- a/libbutl/sha1.mxx +++ b/libbutl/sha1.mxx @@ -28,6 +28,8 @@ import std.core; LIBBUTL_MODEXPORT namespace butl { + class ifdstream; + // SHA1 checksum calculator. // // For a single chunk of data a sum can be obtained in one line, for @@ -64,6 +66,14 @@ LIBBUTL_MODEXPORT namespace butl explicit sha1 (const char* s): sha1 () {append (s);} + // Append stream. + // + void + append (ifdstream&); + + explicit + sha1 (ifdstream& i): sha1 () {append (i);} + // Extract result. // // It can be obtained as either a 20-byte binary digest or as a 40- |