00001 /* 00002 * SHA1 internal definitions 00003 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef SHA1_I_H 00016 #define SHA1_I_H 00017 00018 struct SHA1Context { 00019 u32 state[5]; 00020 u32 count[2]; 00021 unsigned char buffer[64]; 00022 }; 00023 00024 void SHA1Init(struct SHA1Context *context); 00025 void SHA1Update(struct SHA1Context *context, const void *data, u32 len); 00026 void SHA1Final(unsigned char digest[20], struct SHA1Context *context); 00027 void SHA1Transform(u32 state[5], const unsigned char buffer[64]); 00028 00029 #endif /* SHA1_I_H */