Lines Matching defs:alg
85 unsigned int alg,
96 unsigned int alg,
102 unsigned int alg,
110 static isc_result_t algorithm_status(unsigned int alg);
123 #define CHECKALG(alg) \
126 _r = algorithm_status(alg); \
301 dst_algorithm_supported(unsigned int alg) {
304 if (alg >= DST_MAX_ALGS || dst_t_func[alg] == NULL)
532 unsigned int alg, int type, const char *directory,
543 CHECKALG(alg);
545 result = buildfilename(name, id, alg, type, directory, buf);
558 unsigned int alg, int type, const char *directory,
572 CHECKALG(alg);
577 result = dst_key_getfilename(name, id, alg, type, NULL, mctx, &buf);
590 alg != key->key_alg) {
747 isc_uint8_t alg, proto;
762 alg = isc_buffer_getuint8(source);
764 id = dst_region_computeid(&r, alg);
765 rid = dst_region_computerid(&r, alg);
774 result = frombuffer(name, alg, flags, proto, rdclass, source,
786 dst_key_frombuffer(dns_name_t *name, unsigned int alg,
796 result = frombuffer(name, alg, flags, protocol, rdclass, source,
888 dst_key_buildinternal(dns_name_t *name, unsigned int alg,
902 CHECKALG(alg);
904 key = get_key_struct(name, alg, flags, protocol, bits, rdclass,
922 dst_key_fromlabel(dns_name_t *name, int alg, unsigned int flags,
936 CHECKALG(alg);
938 key = get_key_struct(name, alg, flags, protocol, 0, rdclass, 0, mctx);
964 dst_key_generate(dns_name_t *name, unsigned int alg,
970 return (dst_key_generate2(name, alg, bits, param, flags, protocol,
975 dst_key_generate2(dns_name_t *name, unsigned int alg,
990 CHECKALG(alg);
992 key = get_key_struct(name, alg, flags, protocol, bits,
1394 dst_key_restore(dns_name_t *name, unsigned int alg, unsigned int flags,
1404 if (alg >= DST_MAX_ALGS || dst_t_func[alg] == NULL)
1407 if (dst_t_func[alg]->restore == NULL)
1410 key = get_key_struct(name, alg, flags, protocol, 0, rdclass, 0, mctx);
1414 result = (dst_t_func[alg]->restore)(key, keystr);
1431 get_key_struct(dns_name_t *name, unsigned int alg,
1468 key->key_alg = alg;
1475 key->func = dst_t_func[alg];
1837 unsigned int alg, unsigned int type,
1868 "+%03d+%05d%s", alg, id, suffix);
1893 frombuffer(dns_name_t *name, unsigned int alg, unsigned int flags,
1905 key = get_key_struct(name, alg, flags, protocol, 0, rdclass, 0, mctx);
1910 ret = algorithm_status(alg);
1932 algorithm_status(unsigned int alg) {
1935 if (dst_algorithm_supported(alg))
1938 if (alg == DST_ALG_RSAMD5 || alg == DST_ALG_RSASHA1 ||
1939 alg == DST_ALG_DSA || alg == DST_ALG_DH ||
1940 alg == DST_ALG_HMACMD5 || alg == DST_ALG_NSEC3DSA ||
1941 alg == DST_ALG_NSEC3RSASHA1 ||
1942 alg == DST_ALG_RSASHA256 || alg == DST_ALG_RSASHA512 ||
1943 alg == DST_ALG_ECCGOST ||
1944 alg == DST_ALG_ECDSA256 || alg == DST_ALG_ECDSA384 ||
1945 alg == DST_ALG_ED25519 || alg == DST_ALG_ED448)