1 /*
2  * MD5 internal definitions
3  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4  *
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.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14 
15 #pragma once
16 
17 #include <stdint.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 struct MD5Context {
24     uint32_t buf[4];
25     uint32_t bits[2];
26     uint8_t in[64];
27 };
28 
29 void MD5Init(struct MD5Context *context);
30 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
31 void MD5Final(unsigned char digest[16], struct MD5Context *context);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36