11 #define uchar unsigned char
12 #define uint unsigned int
13 #define ulong unsigned long int
26 * Core SHA-1 functions
28 void sha1_starts( sha1_context
*ctx
);
29 void sha1_update( sha1_context
*ctx
, uchar
*input
, uint length
);
30 void sha1_finish( sha1_context
*ctx
, uchar digest
[20] );
33 * Output SHA-1(file contents), returns 0 if successful.
35 int sha1_file( char *filename
, uchar digest
[20] );
40 void sha1_csum( uchar
*buf
, uint buflen
, uchar digest
[20] );
43 * Output HMAC-SHA-1(key,buf)
45 void sha1_hmac( uchar
*key
, uint keylen
, uchar
*buf
, uint buflen
,
51 int sha1_self_test( void );
This page took 0.049763 seconds and 5 git commands to generate.