author | Michael Krelin <hacker@klever.net> | 2013-02-13 22:32:22 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-02-13 22:32:22 (UTC) |
commit | dd545573337e3c54ad4c2c64d72f750ad03aa2c9 (patch) (side-by-side diff) | |
tree | edf4e4294fc20418f5590f2698b8ae9b8bb31c65 /src/eyetil.h | |
parent | d6d845ab3cdbc76943d68329aa0aaa3ddf2af21a (diff) | |
download | iii-dd545573337e3c54ad4c2c64d72f750ad03aa2c9.zip iii-dd545573337e3c54ad4c2c64d72f750ad03aa2c9.tar.gz iii-dd545573337e3c54ad4c2c64d72f750ad03aa2c9.tar.bz2 |
introduced streaming integrity digest updater
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | src/eyetil.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eyetil.h b/src/eyetil.h index 7517ba6..8784cb4 100644 --- a/src/eyetil.h +++ b/src/eyetil.h @@ -76,2 +76,13 @@ struct block512_t { +struct integrity_digester { + md5_digester md5; + size_t data_size; + block512_t data; + + integrity_digester() : data_size(0) { } + void update(const void *d,size_t s); + binary_t final(const std::string& ukey); +}; + + class tmpdir_t { |