Lines Matching refs:alg

24  * int  dst_check_algorithm()   Function to determines if alg is suppored.
79 static DST_KEY *dst_s_get_key_struct(const char *name, const int alg,
136 * alg 1 KEY_RSA
145 dst_check_algorithm(const int alg)
147 return (dst_t_func[alg] != NULL);
156 * alg: the algorithm number
165 dst_s_get_key_struct(const char *name, const int alg, const int flags,
170 if (dst_check_algorithm(alg)) /*%< make sure alg is available */
181 new_key->dk_alg = alg;
186 new_key->dk_func = dst_t_func[alg];
334 if (!dst_check_algorithm(in_alg)) { /*%< make sure alg is available */
376 if (!dst_check_algorithm(key->dk_alg)) { /*%< make sure alg is available */
471 int flags, proto, alg, dlen;
492 * flags, proto, alg stored as decimal (or hex numbers FIXME).
541 if (fscanf(fp, "%d %d %d", &flags, &proto, &alg) != 3) {
542 EREPORT(("%s: Can not read flag/proto/alg field from %s\n",
575 /* return dst_store_public_key(in_name, alg, proto, 666, flags, deckey,
577 return dst_buffer_to_key(in_name, alg, flags, proto, deckey, dlen);
653 int alg ;
658 alg = (u_int8_t) rdata[DST_KEY_ALG];
659 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
661 alg));
668 if ((key_st = dst_s_get_key_struct(in_name, alg, 0, 0, 0)) == NULL)
689 EREPORT(("%s: unsuppored alg %d\n", __func__,
690 alg));
718 if (!dst_check_algorithm(key->dk_alg)) { /*%< make sure alg is available */
755 * alg The algorithm (HMAC only)
764 const int alg, /*!< algorithm */
775 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
776 EREPORT(("%s: Algorithm %d not suppored\n", __func__, alg));
780 dkey = dst_s_get_key_struct(key_name, alg, flags, protocol, -1);
829 int alg, major, minor, file_major, file_minor;
893 if (sscanf((char *)p, "%d", &alg) != 1)
921 pk_key->dk_alg = alg;
937 *\li K&lt;name&gt;+&lt;alg&gt;+&lt;id&gt;.public and K&lt;name&gt;+&lt;alg&gt;+&lt;id&gt;.private.
949 *\par alg What algorithm to use. Currently defined:
962 const int flags, const int protocol, const int alg)
971 if (!dst_check_algorithm(alg)) { /*%< make sure alg is available */
972 EREPORT(("%s: Algorithm %d not suppored\n", __func__, alg));
976 new_key = dst_s_get_key_struct(name, alg, flags, protocol, bits);
982 EREPORT(("%s: Unsupported algorithm %d\n", __func__, alg));
1018 EREPORT(("%s: Unknown key alg %d\n", __func__, f_key->dk_alg));
1051 EREPORT(("%s: Unknown key alg %d\n", __func__, key->dk_alg));