[BACK]Return to sha1.h CVS log [TXT][DIR] Up to [local] / src / include

Annotation of src/include/sha1.h, Revision 1.6

1.6     ! millert     1: /*     $OpenBSD: sha1.h,v 1.5 1997/07/10 22:53:01 millert Exp $        */
1.5       millert     2:
                      3: /*
                      4:  * SHA-1 in C
                      5:  * By Steve Reid <steve@edmweb.com>
                      6:  * 100% Public Domain
                      7:  */
1.1       millert     8:
1.2       millert     9: #ifndef _SHA1_H
                     10: #define _SHA1_H
                     11:
1.1       millert    12: typedef struct {
1.5       millert    13:     u_int32_t state[5];
                     14:     u_int32_t count[2];
                     15:     u_char buffer[64];
                     16: } SHA1_CTX;
                     17:
1.6     ! millert    18: void SHA1Transform __P((u_int32_t state[5], u_char buffer[64]));
        !            19: void SHA1Init __P((SHA1_CTX *context));
        !            20: void SHA1Update __P((SHA1_CTX *context, u_char *data, u_int len));
        !            21: void SHA1Final __P((u_char digest[20], SHA1_CTX *context));
1.2       millert    22:
                     23: #endif /* _SHA1_H */