X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=sha1.h;h=1ede8b3bbbce6822b02b225a27f349b62031e103;hb=bf947741ac8f65e74d594a1e14e94d90320b403e;hp=597f39ac3639f3f00f1494bae16e0c37b4a36e20;hpb=948051f02c9bc3285ce1ea187dbae27120dbf7aa;p=cumulus.git diff --git a/sha1.h b/sha1.h index 597f39a..1ede8b3 100644 --- a/sha1.h +++ b/sha1.h @@ -23,6 +23,8 @@ # include # include +#include + typedef uint32_t md5_uint32; /* Structure to save state of computation between the single steps. */ @@ -85,9 +87,10 @@ public: SHA1Checksum(); ~SHA1Checksum(); - void process(void *data, size_t len); + void process(const void *data, size_t len); const uint8_t *checksum(); size_t checksum_size() const { return 20; } + std::string checksum_str(); }; #endif