/[svn]/vendor/pxys2-2.1.0/pxtarget/sha256.h
ViewVC logotype

Contents of /vendor/pxys2-2.1.0/pxtarget/sha256.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3253 - (show annotations)
Wed Apr 2 20:46:18 2014 UTC (6 years, 11 months ago) by michael
File MIME type: text/x-csrc
File size: 444 byte(s)
- Imported pxys2-2.1.0

1 #ifndef _SHA256_H
2 #define _SHA256_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
12 typedef struct
13 {
14 uint32 total[2];
15 uint32 state[8];
16 uint8 buffer[64];
17 }
18 sha256_context;
19
20 void sha256_starts( sha256_context *ctx );
21 void sha256_update( sha256_context *ctx, uint8 *input, uint32 length );
22 void sha256_finish( sha256_context *ctx, uint8 digest[32] );
23
24 #endif /* sha256.h */
25

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28