Lines Matching defs:algo
86 int algo, flags, type;
139 if ( (c = fscanf (fp, " IN DNSKEY %d %d %d", &flags, &type, &algo)) != 3 &&
140 (c = fscanf (fp, "KEY %d %d %d", &flags, &type, &algo)) != 3 )
142 if ( type != 3 || algo != dkp->algo )
240 dki_t *dki_new (const char *dir, const char *name, int ksk, int algo, int bitsize, const char *rfile, int lf_days)
258 if ( algo == DK_ALGO_RSA || algo == DK_ALGO_RSASHA1 || algo == DK_ALGO_RSASHA256 || algo == DK_ALGO_RSASHA512 )
263 dir, KEYGENCMD, KEYGEN_COMPMODE, randfile, expflag, dki_algo2str(algo), bitsize, flag, name);
266 KEYGENCMD, KEYGEN_COMPMODE, randfile, expflag, dki_algo2str(algo), bitsize, flag, name);
324 if ( sscanf (fname, "K%254[^+]+%hd+%d", dkp->name, &dkp->algo, &dkp->tag) != 3 )
629 char *dki_algo2str (int algo)
631 switch ( algo )
650 char *dki_algo2sstr (int algo)
652 switch ( algo )
698 fprintf (fp, "%d 3 %d (", dkp->flags, dkp->algo);
738 fprintf (fp, "%d 3 %d ", dkp->flags, dkp->algo);
755 len += fprintf (fp, "algo=%s ", dki_algo2str(dkp->algo));
775 len += fprintf (fp, "%d 3 %d ", dkp->flags, dkp->algo);
894 return (dkp->algo);