summaryrefslogtreecommitdiff
path: root/libbb/hash_md5prime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/hash_md5prime.c')
-rw-r--r--libbb/hash_md5prime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/hash_md5prime.c b/libbb/hash_md5prime.c
index e089a15..4b58d37 100644
--- a/libbb/hash_md5prime.c
+++ b/libbb/hash_md5prime.c
@@ -437,7 +437,7 @@ void FAST_FUNC md5_hash(const void *buffer, size_t inputLen, md5_ctx_t *context)
* MD5 finalization. Ends an MD5 message-digest operation,
* writing the message digest.
*/
-void FAST_FUNC md5_end(void *digest, md5_ctx_t *context)
+unsigned FAST_FUNC md5_end(void *digest, md5_ctx_t *context)
{
unsigned idx, padLen;
unsigned char bits[8];
@@ -457,4 +457,5 @@ void FAST_FUNC md5_end(void *digest, md5_ctx_t *context)
/* Store state in digest */
memcpy32_cpu2le(digest, context->state, 16);
+ return 16;
}