Lines Matching +full:unknown +full:- +full:key

139 { "des-iv64",	algtype_des_iv64,	IPSECDOI_ESP_DES_IV64,		8,
159 { "des-iv32", algtype_des_iv32, IPSECDOI_ESP_DES_IV32, 8,
330 int i, res = -1;
347 if (f == NULL || f->hashlen == NULL)
350 return (f->hashlen)();
361 return "*UNKNOWN*";
363 return f->name;
374 if (f == NULL || f->hashlen == NULL)
377 return (f->one)(buf);
400 int i, res = -1;
411 alg_oakley_hmacdef_one(doi, key, buf) in alg_oakley_hmacdef_one() argument
413 vchar_t *key, *buf;
422 if (f == NULL || f->one == NULL)
429 res = (f->one)(key, buf);
434 f->name, buf->l, timedelta(&start, &end));
473 int i, res = -1;
490 if (f == NULL || f->keylen == NULL)
491 return -1;
493 return (f->keylen)(len);
504 return -1;
506 return f->blocklen;
517 return "*UNKNOWN*";
519 return f->name;
523 alg_oakley_encdef_decrypt(doi, buf, key, iv) in alg_oakley_encdef_decrypt() argument
525 vchar_t *buf, *key, *iv;
534 if (f == NULL || f->decrypt == NULL)
541 res = (f->decrypt)(buf, key, iv);
546 f->name, key->l << 3, buf->l, timedelta(&start, &end));
552 alg_oakley_encdef_encrypt(doi, buf, key, iv) in alg_oakley_encdef_encrypt() argument
554 vchar_t *buf, *key, *iv;
563 if (f == NULL || f->encrypt == NULL)
570 res = (f->encrypt)(buf, key, iv);
575 f->name, key->l << 3, buf->l, timedelta(&start, &end));
600 int i, res = -1;
617 if (f == NULL || f->keylen == NULL)
618 return -1;
620 return (f->keylen)(len);
643 int i, res = -1;
660 if (f == NULL || f->hashlen == NULL)
661 return -1;
663 return (f->hashlen)();
671 int i, res = -1;
714 int i, res = -1;
731 if (f == NULL || f->dhgroup == NULL)
734 return f->dhgroup;
745 return "*UNKNOWN*";
746 return f->name;
754 int i, res = -1;
774 return "*UNKNOWN*";
778 * give the default key length
779 * OUT: -1: NG
780 * 0: fixed key cipher, key length not allowed
781 * positive: default key length
810 * check key length
811 * OUT: -1: NG
825 /* unknown class, punt */
827 "unknown algclass %d\n", class);
828 return -1;
831 /* key length must be multiple of 8 bytes - RFC2451 2.2 */
841 "key length %d is not multiple of 8\n", len);
842 return -1;
847 /* key length range */
877 "key length is not allowed");
878 return -1;
884 "key length out of range\n");
885 return -1;
893 * OUT -1 : NG
900 int res = -1;
930 * OUT -1 : NG
953 return -1;
956 return -1;