diff options
| author | Philip <philip@philip-linuxlaptop.(none)> | 2010-10-04 04:27:40 (GMT) |
|---|---|---|
| committer | Philip <philip@philip-linuxlaptop.(none)> | 2010-10-04 04:29:37 (GMT) |
| commit | e4f9f77de906d65264c7d09635761dd05940e1aa (patch) | |
| tree | 6506a2c66d8c923136caba7274145c20106b73f0 /includes/md5.h | |
| parent | ebb784de700240d0f8c2f2c5ffe3d2ab783c6557 (diff) | |
| download | powder-e4f9f77de906d65264c7d09635761dd05940e1aa.zip powder-e4f9f77de906d65264c7d09635761dd05940e1aa.tar.gz | |
Updating
Diffstat (limited to 'includes/md5.h')
| -rw-r--r-- | includes/md5.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/md5.h b/includes/md5.h new file mode 100644 index 0000000..2ae3ae8 --- /dev/null +++ b/includes/md5.h @@ -0,0 +1,18 @@ +#ifndef MD5_H +#define MD5_H + +struct md5_context +{ + unsigned buf[4]; + unsigned bits[2]; + unsigned char in[64]; +}; + +void md5_init(struct md5_context *context); +void md5_update(struct md5_context *context, unsigned char const *buf, unsigned len); +void md5_final(unsigned char digest[16], struct md5_context *context); +void md5_transform(unsigned buf[4], const unsigned char in[64]); + +void md5_ascii(char *result, unsigned char const *buf, unsigned len); + +#endif |
