18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MD5 internal definitions
38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * This software may be distributed under the terms of the BSD license.
6c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * See README for more details.
78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef MD5_I_H
108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define MD5_I_H
118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct MD5Context {
138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	u32 buf[4];
148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	u32 bits[2];
158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	u8 in[64];
168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid MD5Init(struct MD5Context *context);
198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid MD5Update(struct MD5Context *context, unsigned char const *buf,
208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	       unsigned len);
218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid MD5Final(unsigned char digest[16], struct MD5Context *context);
228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* MD5_I_H */
24