Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * MD5 internal definitions |
| 3 | * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> |
| 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame^] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef MD5_I_H |
| 10 | #define MD5_I_H |
| 11 | |
| 12 | struct MD5Context { |
| 13 | u32 buf[4]; |
| 14 | u32 bits[2]; |
| 15 | u8 in[64]; |
| 16 | }; |
| 17 | |
| 18 | void MD5Init(struct MD5Context *context); |
| 19 | void MD5Update(struct MD5Context *context, unsigned char const *buf, |
| 20 | unsigned len); |
| 21 | void MD5Final(unsigned char digest[16], struct MD5Context *context); |
| 22 | |
| 23 | #endif /* MD5_I_H */ |