aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sha1.h')
-rw-r--r--lib/sha1.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sha1.h b/lib/sha1.h
index b1db15da1e7..9419750f485 100644
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -87,8 +87,11 @@ extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf);
87extern void *sha1_buffer (const char *buffer, size_t len, void *resblock); 87extern void *sha1_buffer (const char *buffer, size_t len, void *resblock);
88 88
89# endif 89# endif
90/* Compute SHA1 message digest for bytes read from STREAM. The 90/* Compute SHA1 message digest for bytes read from STREAM.
91 resulting message digest number will be written into the 20 bytes 91 STREAM is an open file stream. Regular files are handled more efficiently.
92 The contents of STREAM from its current position to its end will be read.
93 The case that the last operation on STREAM was an 'ungetc' is not supported.
94 The resulting message digest number will be written into the 20 bytes
92 beginning at RESBLOCK. */ 95 beginning at RESBLOCK. */
93extern int sha1_stream (FILE *stream, void *resblock); 96extern int sha1_stream (FILE *stream, void *resblock);
94 97