Lines Matching refs:algo

127  * @return algo or 0 if malformed rrsig.
340 verbose(VERB_QUERY, "DS fail: DS RR algo and digest do not "
353 return 0; /* digest algo failed */
439 uint8_t algo;
444 algo = (uint8_t)dnskey_get_algo(dnskey, i);
445 if(!dnskey_algo_id_is_supported((int)algo))
447 if(n->needs[algo] == 0) {
448 n->needs[algo] = 1;
449 sigalg[total] = algo;
459 uint8_t algo;
463 while( (algo=*sigalg++) != 0) {
464 log_assert(dnskey_algo_id_is_supported((int)algo));
465 log_assert(n->needs[algo] == 0);
466 n->needs[algo] = 1;
475 uint8_t algo;
483 algo = (uint8_t)ds_get_key_algo(ds, i);
484 if(!dnskey_algo_id_is_supported((int)algo))
486 log_assert(algo != 0); /* we do not support 0 and is EOS */
487 if(n->needs[algo] == 0) {
488 n->needs[algo] = 1;
489 sigalg[total] = algo;
497 int algo_needs_set_secure(struct algo_needs* n, uint8_t algo)
499 if(n->needs[algo]) {
500 n->needs[algo] = 0;
508 void algo_needs_set_bogus(struct algo_needs* n, uint8_t algo)
510 if(n->needs[algo]) n->needs[algo] = 2; /* need it, but bogus */
521 /* check if a needed algo was bogus - report that;
522 * check the first missing algo - report that;
566 int algo = rrset_get_sig_algo(rrset, sig_idx);
571 verbose(VERB_ALGO, "verify sig %d %d", (int)tag, algo);
572 if(!dnskey_algo_id_is_supported(algo)) {
580 /* see if key matches keytag and algo */
581 if(algo != dnskey_get_algo(dnskey, i) ||
715 int algo = dnskey_get_algo(dnskey, dnskey_idx);
728 /* see if sig matches keytag and algo */
729 if(algo != rrset_get_sig_algo(rrset, i) ||
1630 /* verify keytag and sig algo (possibly again) */