diff options
Diffstat (limited to 'src/lib/md5.h')
-rw-r--r-- | src/lib/md5.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/md5.h b/src/lib/md5.h index ad1151e9..7a6f84e6 100644 --- a/src/lib/md5.h +++ b/src/lib/md5.h | |||
@@ -10,8 +10,8 @@ | |||
10 | * with every copy. | 10 | * with every copy. |
11 | * | 11 | * |
12 | * To compute the message digest of a chunk of bytes, declare an | 12 | * To compute the message digest of a chunk of bytes, declare an |
13 | * MD5Context structure, pass it to MD5Init, call MD5Update as | 13 | * MD5Context structure, pass it to MHD_MD5Init, call MHD_MD5Update as |
14 | * needed on buffers full of bytes, and then call MD5Final, which | 14 | * needed on buffers full of bytes, and then call MHD_MD5Final, which |
15 | * will fill a supplied 16-byte array with the digest. | 15 | * will fill a supplied 16-byte array with the digest. |
16 | */ | 16 | */ |
17 | 17 | ||
@@ -35,13 +35,13 @@ struct MD5Context | |||
35 | * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious | 35 | * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious |
36 | * initialization constants. | 36 | * initialization constants. |
37 | */ | 37 | */ |
38 | void MD5Init(struct MD5Context *ctx); | 38 | void MHD_MD5Init(struct MD5Context *ctx); |
39 | 39 | ||
40 | /* | 40 | /* |
41 | * Update context to reflect the concatenation of another buffer full | 41 | * Update context to reflect the concatenation of another buffer full |
42 | * of bytes. | 42 | * of bytes. |
43 | */ | 43 | */ |
44 | void MD5Update(struct MD5Context *ctx, const unsigned char *input, size_t len); | 44 | void MHD_MD5Update(struct MD5Context *ctx, const unsigned char *input, size_t len); |
45 | 45 | ||
46 | /* | 46 | /* |
47 | * Pad pad to 64-byte boundary with the bit pattern | 47 | * Pad pad to 64-byte boundary with the bit pattern |
@@ -52,11 +52,11 @@ void MD5Pad(struct MD5Context *ctx); | |||
52 | /* | 52 | /* |
53 | * Final wrapup--call MD5Pad, fill in digest and zero out ctx. | 53 | * Final wrapup--call MD5Pad, fill in digest and zero out ctx. |
54 | */ | 54 | */ |
55 | void MD5Final(unsigned char digest[MD5_DIGEST_SIZE], struct MD5Context *ctx); | 55 | void MHD_MD5Final(unsigned char digest[MD5_DIGEST_SIZE], struct MD5Context *ctx); |
56 | 56 | ||
57 | /* | 57 | /* |
58 | * The core of the MD5 algorithm, this alters an existing MD5 hash to | 58 | * The core of the MD5 algorithm, this alters an existing MD5 hash to |
59 | * reflect the addition of 16 longwords of new data. MD5Update blocks | 59 | * reflect the addition of 16 longwords of new data. MHD_MD5Update blocks |
60 | * the data and converts bytes into longwords for this routine. | 60 | * the data and converts bytes into longwords for this routine. |
61 | */ | 61 | */ |
62 | void MD5Transform(uint32_t state[4], const uint8_t block[MD5_BLOCK_SIZE]); | 62 | void MD5Transform(uint32_t state[4], const uint8_t block[MD5_BLOCK_SIZE]); |