Lines Matching defs:hashalgo

1808 	uint32_t* serial, int* scheme, int* hashalgo, uint8_t** hash,
1821 *hashalgo = rdata[7];
1833 * scheme and hashalgo, but other RRs should not have it.
1835 * @param hashalgo: the hash algorithm to check for.
1839 size_t index, int scheme, int hashalgo)
1856 if(scheme == scheme2 && hashalgo == hashalgo2) {
1859 "and hash %d", scheme, hashalgo);
1910 int scheme = 0, hashalgo = 0;
1914 &hashalgo, &hash, &hashlen)) {
1922 hashalgo)) {
1937 if(auth_zone_generate_zonemd_check(z, scheme, hashalgo,
1947 verbose(VERB_ALGO, "auth-zone %s ZONEMD %d %d is unsupported: %s", zstr, (int)scheme, (int)hashalgo, *reason);
7332 int zonemd_hashalgo_supported(int hashalgo)
7334 if(hashalgo == ZONEMD_ALGO_SHA384) return 1;
7335 if(hashalgo == ZONEMD_ALGO_SHA512) return 1;
7346 static struct secalgo_hash* zonemd_digest_init(int hashalgo, char** reason)
7349 if(hashalgo == ZONEMD_ALGO_SHA384) {
7355 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7368 static int zonemd_digest_update(int hashalgo, struct secalgo_hash* h,
7371 if(hashalgo == ZONEMD_ALGO_SHA384) {
7377 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7390 static int zonemd_digest_finish(int hashalgo, struct secalgo_hash* h,
7393 if(hashalgo == ZONEMD_ALGO_SHA384) {
7403 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7466 static int zonemd_simple_rrset(struct auth_zone* z, int hashalgo,
7487 if(!zonemd_digest_update(hashalgo, h, sldns_buffer_begin(buf),
7596 static int zonemd_simple_rrsig(struct auth_zone* z, int hashalgo,
7644 if(!zonemd_digest_update(hashalgo, h, sldns_buffer_begin(buf),
7652 static int zonemd_simple_domain(struct auth_zone* z, int hashalgo,
7675 if(!zonemd_simple_rrsig(z, hashalgo, h, node,
7678 } else if(!zonemd_simple_rrset(z, hashalgo, h, node,
7687 static int zonemd_simple_collate(struct auth_zone* z, int hashalgo,
7695 if(!zonemd_simple_domain(z, hashalgo, h, n, region, buf,
7703 int hashalgo, uint8_t* hash, size_t hashlen, size_t* resultlen,
7706 struct secalgo_hash* h = zonemd_digest_init(hashalgo, reason);
7713 if(!zonemd_simple_collate(z, hashalgo, h, region, buf, reason)) {
7719 if(!zonemd_digest_finish(hashalgo, h, hash, hashlen, resultlen,
7730 int hashalgo, uint8_t* hash, size_t hashlen, struct regional* region,
7736 if(!zonemd_hashalgo_supported(hashalgo)) {
7752 if(!auth_zone_generate_zonemd_hash(z, scheme, hashalgo, gen,
7761 verbose(VERB_ALGO, "zonemd scheme=%d hashalgo=%d",
7762 scheme, hashalgo);
7772 verbose(VERB_ALGO, "zonemd scheme=%d hashalgo=%d",
7773 scheme, hashalgo);