diff options
author | David Troy <dave@popvox.com> | 2008-06-23 11:37:23 -0400 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2008-06-23 11:37:23 -0400 |
commit | f722ade2a59872cb8c62e81809ef4d83d11434e5 (patch) | |
tree | 350ed9dda94796a3710c68a52e3690942cb73140 /src/include/md5.h | |
download | astmanproxy-f722ade2a59872cb8c62e81809ef4d83d11434e5.tar.gz astmanproxy-f722ade2a59872cb8c62e81809ef4d83d11434e5.tar.xz astmanproxy-f722ade2a59872cb8c62e81809ef4d83d11434e5.zip |
added files to project
Diffstat (limited to 'src/include/md5.h')
-rw-r--r-- | src/include/md5.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/md5.h b/src/include/md5.h new file mode 100644 index 0000000..30ac30c --- /dev/null +++ b/src/include/md5.h @@ -0,0 +1,18 @@ +#ifndef MD5_H +#define MD5_H + +#include <inttypes.h> + +struct MD5Context { + uint32_t buf[4]; + uint32_t bits[2]; + unsigned char in[64]; +}; + +void MD5Init(struct MD5Context *context); +void MD5Update(struct MD5Context *context, unsigned char const *buf, + unsigned len); +void MD5Final(unsigned char digest[16], struct MD5Context *context); +void MD5Transform(uint32_t buf[4], uint32_t const in[16]); + +#endif /* !MD5_H */ |