diff options
Diffstat (limited to 'lib/sha1.h')
| -rw-r--r-- | lib/sha1.h | 7 |
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); | |||
| 87 | extern void *sha1_buffer (const char *buffer, size_t len, void *resblock); | 87 | extern 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. */ |
| 93 | extern int sha1_stream (FILE *stream, void *resblock); | 96 | extern int sha1_stream (FILE *stream, void *resblock); |
| 94 | 97 | ||