diff options
Diffstat (limited to 'lib/sha512.h')
| -rw-r--r-- | lib/sha512.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sha512.h b/lib/sha512.h index 6a0aadba02f..2c39ab195cf 100644 --- a/lib/sha512.h +++ b/lib/sha512.h | |||
| @@ -92,8 +92,11 @@ extern void *sha512_buffer (const char *buffer, size_t len, void *resblock); | |||
| 92 | extern void *sha384_buffer (const char *buffer, size_t len, void *resblock); | 92 | extern void *sha384_buffer (const char *buffer, size_t len, void *resblock); |
| 93 | 93 | ||
| 94 | # endif | 94 | # endif |
| 95 | /* Compute SHA512 (SHA384) message digest for bytes read from STREAM. The | 95 | /* Compute SHA512 (SHA384) message digest for bytes read from STREAM. |
| 96 | resulting message digest number will be written into the 64 (48) bytes | 96 | STREAM is an open file stream. Regular files are handled more efficiently. |
| 97 | The contents of STREAM from its current position to its end will be read. | ||
| 98 | The case that the last operation on STREAM was an 'ungetc' is not supported. | ||
| 99 | The resulting message digest number will be written into the 64 (48) bytes | ||
| 97 | beginning at RESBLOCK. */ | 100 | beginning at RESBLOCK. */ |
| 98 | extern int sha512_stream (FILE *stream, void *resblock); | 101 | extern int sha512_stream (FILE *stream, void *resblock); |
| 99 | extern int sha384_stream (FILE *stream, void *resblock); | 102 | extern int sha384_stream (FILE *stream, void *resblock); |