md5_i.h revision 214501
1254721Semaste/*
2254721Semaste * MD5 internal definitions
3353358Sdim * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4353358Sdim *
5353358Sdim * This program is free software; you can redistribute it and/or modify
6254721Semaste * it under the terms of the GNU General Public License version 2 as
7254721Semaste * published by the Free Software Foundation.
8254721Semaste *
9254721Semaste * Alternatively, this software may be distributed under the terms of BSD
10254721Semaste * license.
11254721Semaste *
12360784Sdim * See README and COPYING for more details.
13360784Sdim */
14254721Semaste
15360784Sdim#ifndef MD5_I_H
16254721Semaste#define MD5_I_H
17360784Sdim
18254721Semastestruct MD5Context {
19360784Sdim	u32 buf[4];
20254721Semaste	u32 bits[2];
21360784Sdim	u8 in[64];
22254721Semaste};
23314564Sdim
24314564Sdimvoid MD5Init(struct MD5Context *context);
25314564Sdimvoid MD5Update(struct MD5Context *context, unsigned char const *buf,
26314564Sdim	       unsigned len);
27288943Sdimvoid MD5Final(unsigned char digest[16], struct MD5Context *context);
28314564Sdim
29296417Sdim#endif /* MD5_I_H */
30314564Sdim