7 #if LDNS_BUILD_CONFIG_HAVE_INTTYPES_H
15 #define LDNS_SHA1_BLOCK_LENGTH 64
16 #define LDNS_SHA1_DIGEST_LENGTH 20
39 unsigned char *
ldns_sha1(
const unsigned char *data,
unsigned int data_len,
unsigned char *digest);
#define LDNS_SHA1_DIGEST_LENGTH
#define LDNS_SHA1_BLOCK_LENGTH
void ldns_sha1_update(ldns_sha1_ctx *context, const unsigned char *data, unsigned int len)
void ldns_sha1_transform(uint32_t state[5], const unsigned char buffer[64])
void ldns_sha1_final(unsigned char digest[20], ldns_sha1_ctx *context)
void ldns_sha1_init(ldns_sha1_ctx *context)
unsigned char * ldns_sha1(const unsigned char *data, unsigned int data_len, unsigned char *digest)
Convenience function to digest a fixed block of data at once.