OLD | NEW |
1 /* | 1 /* |
2 * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. | 2 * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. |
3 * MD5 Message-Digest Algorithm (RFC 1321). | 3 * MD5 Message-Digest Algorithm (RFC 1321). |
4 * | 4 * |
5 * Homepage: | 5 * Homepage: |
6 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 | 6 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 |
7 * | 7 * |
8 * Author: | 8 * Author: |
9 * Alexander Peslyak, better known as Solar Designer <solar at openwall.com> | 9 * Alexander Peslyak, better known as Solar Designer <solar at openwall.com> |
10 * | 10 * |
(...skipping 21 matching lines...) Expand all Loading... |
32 typedef unsigned int MD5_u32plus; | 32 typedef unsigned int MD5_u32plus; |
33 | 33 |
34 typedef struct { | 34 typedef struct { |
35 MD5_u32plus lo, hi; | 35 MD5_u32plus lo, hi; |
36 MD5_u32plus a, b, c, d; | 36 MD5_u32plus a, b, c, d; |
37 unsigned char buffer[64]; | 37 unsigned char buffer[64]; |
38 MD5_u32plus block[16]; | 38 MD5_u32plus block[16]; |
39 } MD5_CTX; | 39 } MD5_CTX; |
40 | 40 |
41 extern void MD5_Init(MD5_CTX *ctx); | 41 extern void MD5_Init(MD5_CTX *ctx); |
42 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size); | 42 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size); |
43 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); | 43 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); |
44 | 44 |
45 #endif | 45 #endif |
OLD | NEW |