Lines Matching defs:alg

26  * int  dst_check_algorithm()   Function to determines if alg is suppored.
77 static DST_KEY *dst_s_get_key_struct(const char *name, const int alg,
132 * alg 1 KEY_RSA
141 dst_check_algorithm(const int alg)
143 return (dst_t_func[alg] != NULL);
152 * alg: the algorithm number
161 dst_s_get_key_struct(const char *name, const int alg, const int flags,
166 if (dst_check_algorithm(alg)) /*%< make sure alg is available */
177 new_key->dk_alg = alg;
182 new_key->dk_func = dst_t_func[alg];
330 if (!dst_check_algorithm(in_alg)) { /*%< make sure alg is available */
373 if (!dst_check_algorithm(key->dk_alg)) { /*%< make sure alg is available */
465 int flags, proto, alg, len, dlen;
485 * flags, proto, alg stored as decimal (or hex numbers FIXME).
534 if (fscanf(fp, "%d %d %d", &flags, &proto, &alg) != 3) {
535 EREPORT(("dst_read_public_key(): Can not read flag/proto/alg field from %s\n"
569 /* return dst_store_public_key(in_name, alg, proto, 666, flags, deckey,
571 return dst_buffer_to_key(in_name, alg, flags, proto, deckey, dlen);
646 int alg ;
651 alg = (u_int8_t) rdata[DST_KEY_ALG];
652 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
654 alg));
661 if ((key_st = dst_s_get_key_struct(in_name, alg, 0, 0, 0)) == NULL)
682 EREPORT(("dst_dnskey_to_public_key(): unsuppored alg %d\n",
683 alg));
711 if (!dst_check_algorithm(key->dk_alg)) { /*%< make sure alg is available */
749 * alg The algorithm (HMAC only)
758 const int alg, /*!< algorithm */
769 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
770 EREPORT(("dst_buffer_to_key(): Algorithm %d not suppored\n", alg));
774 dkey = dst_s_get_key_struct(key_name, alg, flags, protocol, -1);
823 int cnt, alg, len, major, minor, file_major, file_minor;
885 if (sscanf((char *)p, "%d", &alg) != 1)
911 pk_key->dk_alg = alg;
927 *\li K&lt;name&gt;+&lt;alg&gt;+&lt;id&gt;.public and K&lt;name&gt;+&lt;alg&gt;+&lt;id&gt;.private.
939 *\par alg What algorithm to use. Currently defined:
952 const int flags, const int protocol, const int alg)
961 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
962 EREPORT(("dst_generate_key(): Algorithm %d not suppored\n", alg));
966 new_key = dst_s_get_key_struct(name, alg, flags, protocol, bits);
973 alg));
1009 EREPORT(("dst_free_key(): Unknown key alg %d\n",
1043 EREPORT(("dst_sig_size(): Unknown key alg %d\n", key->dk_alg));