diff options
author | David Troy <dave@popvox.com> | 2006-04-08 02:59:37 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-08 02:59:37 +0000 |
commit | ab4b54852ac9270880a85acc18a3718fd93e2de2 (patch) | |
tree | 4faa4f0b79a6e642849b5f3344beff4304e41b63 /src/include/md5.h | |
parent | a6bb95888b0262222975589d8c651798c1f1c773 (diff) | |
parent | edf54a3c22f04b10a0ff8694cf03ed81fd7079c0 (diff) | |
download | astmanproxy-ab4b54852ac9270880a85acc18a3718fd93e2de2.tar.gz astmanproxy-ab4b54852ac9270880a85acc18a3718fd93e2de2.tar.xz astmanproxy-ab4b54852ac9270880a85acc18a3718fd93e2de2.zip |
Trunk, based on 1.20
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@101 f02b47b9-160a-0410-81a6-dc3441afb0ec
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 */ |