2009-08-13 10:28:03 +02:00
|
|
|
/*
|
|
|
|
* MD5 internal definitions
|
|
|
|
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2009-08-13 10:28:03 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MD5_I_H
|
|
|
|
#define MD5_I_H
|
|
|
|
|
2009-10-17 11:55:12 +02:00
|
|
|
struct MD5Context {
|
|
|
|
u32 buf[4];
|
|
|
|
u32 bits[2];
|
|
|
|
u8 in[64];
|
|
|
|
};
|
2009-08-13 10:28:03 +02:00
|
|
|
|
|
|
|
void MD5Init(struct MD5Context *context);
|
|
|
|
void MD5Update(struct MD5Context *context, unsigned char const *buf,
|
|
|
|
unsigned len);
|
|
|
|
void MD5Final(unsigned char digest[16], struct MD5Context *context);
|
|
|
|
|
|
|
|
#endif /* MD5_I_H */
|