projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Place expired and repacked objects into segments based on database.
[cumulus.git]
/
sha1.h
diff --git
a/sha1.h
b/sha1.h
index
b4d4305
..
2d7e161
100644
(file)
--- a/
sha1.h
+++ b/
sha1.h
@@
-23,6
+23,8
@@
# include <stdio.h>
# include <stdint.h>
# include <stdio.h>
# include <stdint.h>
+#include <string>
+
typedef uint32_t md5_uint32;
/* Structure to save state of computation between the single steps. */
typedef uint32_t md5_uint32;
/* Structure to save state of computation between the single steps. */
@@
-86,8
+88,10
@@
public:
~SHA1Checksum();
void process(const void *data, size_t len);
~SHA1Checksum();
void process(const void *data, size_t len);
+ bool process_file(const char *filename);
const uint8_t *checksum();
size_t checksum_size() const { return 20; }
const uint8_t *checksum();
size_t checksum_size() const { return 20; }
+ std::string checksum_str();
};
#endif
};
#endif