1214501Srpaulo/* 2214501Srpaulo * MD5 internal definitions 3214501Srpaulo * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 4214501Srpaulo * 5214501Srpaulo * This program is free software; you can redistribute it and/or modify 6214501Srpaulo * it under the terms of the GNU General Public License version 2 as 7214501Srpaulo * published by the Free Software Foundation. 8214501Srpaulo * 9214501Srpaulo * Alternatively, this software may be distributed under the terms of BSD 10214501Srpaulo * license. 11214501Srpaulo * 12214501Srpaulo * See README and COPYING for more details. 13214501Srpaulo */ 14214501Srpaulo 15214501Srpaulo#ifndef MD5_I_H 16214501Srpaulo#define MD5_I_H 17214501Srpaulo 18214501Srpaulostruct MD5Context { 19214501Srpaulo u32 buf[4]; 20214501Srpaulo u32 bits[2]; 21214501Srpaulo u8 in[64]; 22214501Srpaulo}; 23214501Srpaulo 24214501Srpaulovoid MD5Init(struct MD5Context *context); 25214501Srpaulovoid MD5Update(struct MD5Context *context, unsigned char const *buf, 26214501Srpaulo unsigned len); 27214501Srpaulovoid MD5Final(unsigned char digest[16], struct MD5Context *context); 28214501Srpaulo 29214501Srpaulo#endif /* MD5_I_H */ 30