Change all stun_XXX_t enums/structs into StunXxx to have a common naming convention
[sipe-libnice.git] / stun / md5.h
blobfd9f4ceda7ac0e6c8eb8c2705c2ecde1525f945f
1 /*
2 * MD5 hash implementation and interface functions
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef MD5_H
16 #define MD5_H
18 #ifdef _WIN32
19 #include "win32_common.h"
20 #else
21 #include <stdint.h>
22 #endif
23 #include <stddef.h>
25 #define MD5_MAC_LEN 16
27 struct MD5Context {
28 uint32_t buf[4];
29 uint32_t bits[2];
30 uint8_t in[64];
33 typedef struct MD5Context MD5_CTX;
35 void MD5Init(MD5_CTX *context);
36 void MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
37 void MD5Final(unsigned char digest[16], MD5_CTX *context);
40 #endif /* MD5_H */