diff options
| author | Simon <simon@hardwired.org.uk> | 2010-07-25 14:03:39 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-07-25 14:03:39 (GMT) |
| commit | 2b8775bc56a1016198010e50a0329db82144c1cc (patch) | |
| tree | a8e91dc51d6eb558382dfd670768a4f260113b89 /md5.h | |
| parent | dad7b3a1ab5979cc80c900a2e176415de447e837 (diff) | |
| download | powder-2b8775bc56a1016198010e50a0329db82144c1cc.zip powder-2b8775bc56a1016198010e50a0329db82144c1cc.tar.gz | |
Current source - 38.0
Diffstat (limited to 'md5.h')
| -rwxr-xr-x | md5.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#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 |
