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);
7309 int zonemd_hashalgo_supported(int hashalgo)
7311 if(hashalgo == ZONEMD_ALGO_SHA384) return 1;
7312 if(hashalgo == ZONEMD_ALGO_SHA512) return 1;
7323 static struct secalgo_hash* zonemd_digest_init(int hashalgo, char** reason)
7326 if(hashalgo == ZONEMD_ALGO_SHA384) {
7332 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7345 static int zonemd_digest_update(int hashalgo, struct secalgo_hash* h,
7348 if(hashalgo == ZONEMD_ALGO_SHA384) {
7354 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7367 static int zonemd_digest_finish(int hashalgo, struct secalgo_hash* h,
7370 if(hashalgo == ZONEMD_ALGO_SHA384) {
7380 } else if(hashalgo == ZONEMD_ALGO_SHA512) {
7443 static int zonemd_simple_rrset(struct auth_zone* z, int hashalgo,
7464 if(!zonemd_digest_update(hashalgo, h, sldns_buffer_begin(buf),
7573 static int zonemd_simple_rrsig(struct auth_zone* z, int hashalgo,
7621 if(!zonemd_digest_update(hashalgo, h, sldns_buffer_begin(buf),
7629 static int zonemd_simple_domain(struct auth_zone* z, int hashalgo,
7652 if(!zonemd_simple_rrsig(z, hashalgo, h, node,
7655 } else if(!zonemd_simple_rrset(z, hashalgo, h, node,
7664 static int zonemd_simple_collate(struct auth_zone* z, int hashalgo,
7672 if(!zonemd_simple_domain(z, hashalgo, h, n, region, buf,
7680 int hashalgo, uint8_t* hash, size_t hashlen, size_t* resultlen,
7683 struct secalgo_hash* h = zonemd_digest_init(hashalgo, reason);
7690 if(!zonemd_simple_collate(z, hashalgo, h, region, buf, reason)) {
7696 if(!zonemd_digest_finish(hashalgo, h, hash, hashlen, resultlen,
7707 int hashalgo, uint8_t* hash, size_t hashlen, struct regional* region,
7713 if(!zonemd_hashalgo_supported(hashalgo)) {
7729 if(!auth_zone_generate_zonemd_hash(z, scheme, hashalgo, gen,
7738 verbose(VERB_ALGO, "zonemd scheme=%d hashalgo=%d",
7739 scheme, hashalgo);
7749 verbose(VERB_ALGO, "zonemd scheme=%d hashalgo=%d",
7750 scheme, hashalgo);