1 #ifndef SL_CHKSUM_H_
2 #define SL_CHKSUM_H_
3 
4 typedef struct SLChksum_Type
5 {
6    int (*accumulate)(struct SLChksum_Type *, unsigned char *, unsigned int);
7 
8    /* compute the digest and delete the object.  If the digest parameter is
9     * NULL, just delete the object
10     */
11    int (*close)(struct SLChksum_Type *, unsigned char *);
12    unsigned int digest_len;	       /* set by open */
13 #ifdef CHKSUM_TYPE_PRIVATE_FIELDS
14    /* private data */
15    CHKSUM_TYPE_PRIVATE_FIELDS
16 #endif
17 }
18 SLChksum_Type;
19 
20 extern SLChksum_Type *_pSLchksum_sha1_new (char *name);
21 extern SLChksum_Type *_pSLchksum_md5_new (char *name);
22 #endif
23 
24