summaryrefslogtreecommitdiffstats
path: root/lib/libmd/ripemd.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-03-17 10:00:50 +0000
committerphk <phk@FreeBSD.org>2001-03-17 10:00:50 +0000
commitcf0fcea2b7ae26222f4865e9a6df53972a02f443 (patch)
tree7fe491bdf6b8f8e4c7ca17e38a2e3f0368875806 /lib/libmd/ripemd.h
parent670e711dd19510316ecaa1f30d78f16ba66492f6 (diff)
downloadFreeBSD-src-cf0fcea2b7ae26222f4865e9a6df53972a02f443.zip
FreeBSD-src-cf0fcea2b7ae26222f4865e9a6df53972a02f443.tar.gz
Add a new entrypoint to the hashes in libmd:
char * FooFileChunk(const char *filename, char *buf, off_t offset, off_t length) Which only hashes part of a file. Implement FooFile() in terms of this function. Submitted by: roam
Diffstat (limited to 'lib/libmd/ripemd.h')
-rw-r--r--lib/libmd/ripemd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libmd/ripemd.h b/lib/libmd/ripemd.h
index 1399d32..e64f501 100644
--- a/lib/libmd/ripemd.h
+++ b/lib/libmd/ripemd.h
@@ -56,6 +56,10 @@
* [including the GNU Public Licence.]
*/
+/*
+ * $FreeBSD$
+ */
+
#ifndef HEADER_RIPEMD_H
#define HEADER_RIPEMD_H
@@ -83,6 +87,7 @@ void RIPEMD160_Update(RIPEMD160_CTX *c, const unsigned char *data,
void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
char *RIPEMD160_End(RIPEMD160_CTX *, char *);
char *RIPEMD160_File(const char *, char *);
+char *RIPEMD160_FileChunk(const char *, char *, off_t, off_t);
char *RIPEMD160_Data(const unsigned char *, unsigned int, char *);
__END_DECLS
OpenPOWER on IntegriCloud