30#ifdef OPENSCAP_ENABLE_MD5
31 CRAPI_DIGEST_MD5 = 0x01,
33#ifdef OPENSCAP_ENABLE_SHA1
34 CRAPI_DIGEST_SHA1 = 0x02,
36 CRAPI_DIGEST_SHA256 = 0x04,
37 CRAPI_DIGEST_SHA512 = 0x08,
38 CRAPI_DIGEST_RMD160 = 0x10,
39 CRAPI_DIGEST_SHA224 = 0x20,
40 CRAPI_DIGEST_SHA384 = 0x40
48int crapi_digest_fd (
int fd, crapi_alg_t alg,
void *dst,
size_t *size);
52 void *(*init) (
void *,
void *);
53 int (*update)(
void *,
void *, size_t);
55 void (*free) (
void *);
58int crapi_mdigest_fd (
int fd,
int num, ... );