sha1_i.h revision 214734
1146768Ssam/* 2146768Ssam * SHA1 internal definitions 3146768Ssam * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 4146768Ssam * 5146768Ssam * This program is free software; you can redistribute it and/or modify 6146768Ssam * it under the terms of the GNU General Public License version 2 as 7146768Ssam * published by the Free Software Foundation. 8146768Ssam * 9146768Ssam * Alternatively, this software may be distributed under the terms of BSD 10146768Ssam * license. 11146768Ssam * 12146768Ssam * See README and COPYING for more details. 13146768Ssam */ 14146768Ssam 15146768Ssam#ifndef SHA1_I_H 16146768Ssam#define SHA1_I_H 17146768Ssam 18146768Ssamstruct SHA1Context { 19146768Ssam u32 state[5]; 20146768Ssam u32 count[2]; 21146768Ssam unsigned char buffer[64]; 22146768Ssam}; 23146768Ssam 24146768Ssamvoid SHA1Init(struct SHA1Context *context); 25146768Ssamvoid SHA1Update(struct SHA1Context *context, const void *data, u32 len); 26146768Ssamvoid SHA1Final(unsigned char digest[20], struct SHA1Context *context); 27146768Ssamvoid SHA1Transform(u32 state[5], const unsigned char buffer[64]); 28146768Ssam 29146768Ssam#endif /* SHA1_I_H */ 30146768Ssam