summaryrefslogtreecommitdiffstats
path: root/sys/sys/md5.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 /sys/sys/md5.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 'sys/sys/md5.h')
-rw-r--r--sys/sys/md5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/md5.h b/sys/sys/md5.h
index 48b30ab..4211b01 100644
--- a/sys/sys/md5.h
+++ b/sys/sys/md5.h
@@ -42,6 +42,7 @@ void MD5Pad (MD5_CTX *);
void MD5Final (unsigned char [16], MD5_CTX *);
char * MD5End(MD5_CTX *, char *);
char * MD5File(const char *, char *);
+char * MD5FileChunk(const char *, char *, off_t, off_t);
char * MD5Data(const unsigned char *, unsigned int, char *);
#ifdef _KERNEL
void MD5Transform __P((u_int32_t [4], const unsigned char [64]));
OpenPOWER on IntegriCloud