1 /*
2  * SPDX-FileCopyrightText: 2003-2005, Jouni Malinen <j@w1.fi>
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 /*
7  * MD5 internal definitions
8  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * Alternatively, this software may be distributed under the terms of BSD
15  * license.
16  *
17  * See README and COPYING for more details.
18  */
19 
20 #pragma once
21 
22 #include <stdint.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 struct MD5Context {
29     uint32_t buf[4];
30     uint32_t bits[2];
31     uint8_t in[64];
32 };
33 
34 void MD5Init(struct MD5Context *context);
35 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
36 void MD5Final(unsigned char digest[16], struct MD5Context *context);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41