2009-08-13 10:28:03 +02:00
|
|
|
/*
|
|
|
|
* SHA1 internal definitions
|
|
|
|
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2009-08-13 10:28:03 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SHA1_I_H
|
|
|
|
#define SHA1_I_H
|
|
|
|
|
2009-10-17 11:55:12 +02:00
|
|
|
struct SHA1Context {
|
|
|
|
u32 state[5];
|
|
|
|
u32 count[2];
|
|
|
|
unsigned char buffer[64];
|
|
|
|
};
|
2009-08-13 10:28:03 +02:00
|
|
|
|
|
|
|
void SHA1Init(struct SHA1Context *context);
|
|
|
|
void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
|
|
|
|
void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
|
|
|
|
void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
|
|
|
|
|
|
|
|
#endif /* SHA1_I_H */
|