diff options
Diffstat (limited to 'src/microhttpd/md5.h')
-rw-r--r-- | src/microhttpd/md5.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/microhttpd/md5.h b/src/microhttpd/md5.h index 3c1d1c1c..f81d91cb 100644 --- a/src/microhttpd/md5.h +++ b/src/microhttpd/md5.h | |||
@@ -22,15 +22,15 @@ | |||
22 | #include <stdint.h> | 22 | #include <stdint.h> |
23 | #include <stddef.h> | 23 | #include <stddef.h> |
24 | 24 | ||
25 | #define MD5_BLOCK_SIZE 64 | 25 | #define MD5_BLOCK_SIZE 64 |
26 | #define MD5_DIGEST_SIZE 16 | 26 | #define MD5_DIGEST_SIZE 16 |
27 | #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_SIZE * 2 + 1) | 27 | #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_SIZE * 2 + 1) |
28 | 28 | ||
29 | struct MD5Context | 29 | struct MD5Context |
30 | { | 30 | { |
31 | uint32_t state[4]; /* state */ | 31 | uint32_t state[4]; /* state */ |
32 | uint64_t count; /* number of bytes, mod 2^64 */ | 32 | uint64_t count; /* number of bytes, mod 2^64 */ |
33 | uint8_t buffer[MD5_BLOCK_SIZE]; /* input buffer */ | 33 | uint8_t buffer[MD5_BLOCK_SIZE]; /* input buffer */ |
34 | }; | 34 | }; |
35 | 35 | ||
36 | 36 | ||
@@ -52,8 +52,8 @@ MHD_MD5Init (void *ctx_); | |||
52 | */ | 52 | */ |
53 | void | 53 | void |
54 | MHD_MD5Update (void *ctx_, | 54 | MHD_MD5Update (void *ctx_, |
55 | const uint8_t *input, | 55 | const uint8_t *input, |
56 | size_t len); | 56 | size_t len); |
57 | 57 | ||
58 | 58 | ||
59 | /** | 59 | /** |
@@ -63,7 +63,7 @@ MHD_MD5Update (void *ctx_, | |||
63 | */ | 63 | */ |
64 | void | 64 | void |
65 | MHD_MD5Final (void *ctx_, | 65 | MHD_MD5Final (void *ctx_, |
66 | uint8_t digest[MD5_DIGEST_SIZE]); | 66 | uint8_t digest[MD5_DIGEST_SIZE]); |
67 | 67 | ||
68 | 68 | ||
69 | #endif /* !MHD_MD5_H */ | 69 | #endif /* !MHD_MD5_H */ |