2
// From http://www.packetizer.com/security/sha1/
7
* Paul E. Jones <paulej@arid.us>
10
*****************************************************************************
11
* $Id: sha1.h,v 1.2 2004/03/27 18:00:33 paulej Exp $
12
*****************************************************************************
15
* This class implements the Secure Hashing Standard as defined
16
* in FIPS PUB 180-1 published April 17, 1995.
18
* Many of the variable names in the SHA1Context, especially the
19
* single character names, were used because those were the names
20
* used in the publication.
22
* Please read the file sha1.c for more information.
32
* This structure will hold context information for the hashing
35
typedef struct SHA1Context
37
unsigned Message_Digest[5]; /* Message Digest (output) */
39
unsigned Length_Low; /* Message length in bits */
40
unsigned Length_High; /* Message length in bits */
42
unsigned char Message_Block[64]; /* 512-bit message blocks */
43
int Message_Block_Index; /* Index into message block array */
45
int Computed; /* Is the digest computed? */
46
int Corrupted; /* Is the message digest corruped? */
52
void SHA1Reset(SHA1Context *);
53
int SHA1Result(SHA1Context *);
54
void SHA1Input(SHA1Context *,
55
const unsigned char *,