source: project/release/4/sha1/trunk/sha1.h @ 15609

Last change on this file since 15609 was 15609, checked in by Kon Lovett, 11 years ago

Initial save.

  • Property svn:executable set to *
File size: 444 bytes
Line 
1#ifndef _SHA1_H
2#define _SHA1_H
3
4#ifndef uint8
5#define uint8  unsigned char
6#endif
7
8#ifndef uint32
9#define uint32 unsigned long int
10#endif
11
12typedef struct
13{
14    uint32 total[2];
15    uint32 state[5];
16    uint8 buffer[64];
17}
18sha1_context;
19
20static
21void sha1_starts( sha1_context *ctx );
22static
23void sha1_update( sha1_context *ctx, uint8 *input, uint32 length );
24static
25void sha1_finish( sha1_context *ctx, uint8 digest[20] );
26
27#endif /* sha1.h */
Note: See TracBrowser for help on using the repository browser.