X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=libs%2Fshttpd%2Fmd5.h;fp=libs%2Fshttpd%2Fmd5.h;h=fcca00ecfb5505fe8b731ca69cb001c4f9efcd0c;hb=d8ccfe2b3944adf07d35534459cdda19d15217c8;hp=0000000000000000000000000000000000000000;hpb=21f835f30b4e092c847bf4569a00995774f7330e;p=fms.git diff --git a/libs/shttpd/md5.h b/libs/shttpd/md5.h new file mode 100644 index 0000000..fcca00e --- /dev/null +++ b/libs/shttpd/md5.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2004-2005 Sergey Lyubka + * All rights reserved + * + * "THE BEER-WARE LICENSE" (Revision 42): + * Sergey Lyubka wrote this file. As long as you retain this notice you + * can do whatever you want with this stuff. If we meet some day, and you think + * this stuff is worth it, you can buy me a beer in return. + */ + +#ifndef MD5_HEADER_INCLUDED +#define MD5_HEADER_INCLUDED + +typedef struct MD5Context { + uint32_t buf[4]; + uint32_t bits[2]; + unsigned char in[64]; +} MD5_CTX; + +extern void MD5Init(MD5_CTX *ctx); +extern void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len); +extern void MD5Final(unsigned char digest[16], MD5_CTX *ctx); + +#endif /*MD5_HEADER_INCLUDED */