00001 /*00002 * SHA1 internal definitions00003 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>00004 *00005 * This program is free software; you can redistribute it and/or modify00006 * it under the terms of the GNU General Public License version 2 as00007 * published by the Free Software Foundation.00008 *00009 * Alternatively, this software may be distributed under the terms of BSD00010 * license.00011 *00012 * See README and COPYING for more details.00013 */00014
00015 #ifndef SHA1_I_H00016 #define SHA1_I_H00017
00018struct SHA1Context {
00019u32state[5];
00020u32count[2];
00021unsignedcharbuffer[64];
00022 };
00023
00024 voidSHA1Init(structSHA1Context *context);
00025 voidSHA1Update(structSHA1Context *context, constvoid *data, u32 len);
00026 voidSHA1Final(unsignedchar digest[20], structSHA1Context *context);
00027 voidSHA1Transform(u32 state[5], constunsignedchar buffer[64]);
00028
00029 #endif /* SHA1_I_H */