aboutsummaryrefslogtreecommitdiff
path: root/src/lib/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/md5.c')
-rw-r--r--src/lib/md5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/md5.c b/src/lib/md5.c
index 3d0f7493..08f5c1d9 100644
--- a/src/lib/md5.c
+++ b/src/lib/md5.c
@@ -59,6 +59,7 @@ MHD_MD5Init (struct MD5Context *ctx)
59 ctx->state[3] = 0x10325476; 59 ctx->state[3] = 0x10325476;
60} 60}
61 61
62
62/* 63/*
63 * Update context to reflect the concatenation of another buffer full 64 * Update context to reflect the concatenation of another buffer full
64 * of bytes. 65 * of bytes.
@@ -103,6 +104,7 @@ MHD_MD5Update (struct MD5Context *ctx, const unsigned char *input, size_t len)
103 memcpy (ctx->buffer + have, input, len); 104 memcpy (ctx->buffer + have, input, len);
104} 105}
105 106
107
106/* 108/*
107 * Pad pad to 64-byte boundary with the bit pattern 109 * Pad pad to 64-byte boundary with the bit pattern
108 * 1 0* (64-bit count of bits processed, MSB-first) 110 * 1 0* (64-bit count of bits processed, MSB-first)
@@ -128,6 +130,7 @@ MD5Pad (struct MD5Context *ctx)
128 MHD_MD5Update (ctx, count, 8); 130 MHD_MD5Update (ctx, count, 8);
129} 131}
130 132
133
131/* 134/*
132 * Final wrapup--call MD5Pad, fill in digest and zero out ctx. 135 * Final wrapup--call MD5Pad, fill in digest and zero out ctx.
133 */ 136 */
@@ -261,4 +264,5 @@ MD5Transform (uint32_t state[4], const uint8_t block[MD5_BLOCK_SIZE])
261 state[3] += d; 264 state[3] += d;
262} 265}
263 266
267
264/* end of md5.c */ 268/* end of md5.c */