Home
last modified time | relevance | path

Searched refs:keytype (Results 1 – 25 of 33) sorted by relevance

12

/openbsd/src/regress/usr.bin/ssh/
Dknownhosts-command.sh41 for keytype in ${SSH_HOSTKEY_TYPES} ; do
42 algs=$keytype
43 test "x$keytype" = "xssh-dss" && continue
44 test "x$keytype" = "xssh-rsa" && algs=ssh-rsa,rsa-sha2-256,rsa-sha2-512
45 verbose "keytype $keytype"
49 test "x\$1" = "x$keytype" || die "wrong keytype \$1 (expected $keytype)"
Dkrl.sh69 keytype=$ktype1
71 2 | 10 | 510 | 1001) keytype=$ktype2 ;;
72 4 | 30 | 520 | 1002) keytype=$ktype3 ;;
73 8 | 50 | 530 | 1003) keytype=$ktype4 ;;
74 16 | 70 | 540 | 1004) keytype=$ktype5 ;;
75 32 | 90 | 550 | 1005) keytype=$ktype6 ;;
77 $SSHKEYGEN -t $keytype -f $f -C "" -N "" > /dev/null \
Ddropbear-ciphers.sh22 keytype=`(cd $OBJ/.dropbear && ls id_*)`
26 for kt in $keytype; do
/openbsd/src/usr.sbin/acme-client/
Dparse.h30 enum keytype { enum
40 enum keytype keytype; member
48 enum keytype keytype; member
Dkeyproc.c78 enum keytype keytype) in keyproc() argument
120 switch (keytype) { in keyproc()
Dparse.y73 const char* kt2txt(enum keytype);
112 %type <v.number> keytype
222 | ACCOUNT KEY STRING keytype{
231 auth->keytype = $4;
281 keytype : RSA { $$ = KT_RSA; }
301 | DOMAIN KEY STRING keytype {
319 domain->keytype = $4;
1030 kt2txt(enum keytype kt) in kt2txt()
1056 kt2txt(a->keytype)); in print_config()
1076 d->keytype)); in print_config()
Dextern.h203 int acctproc(int, const char *, enum keytype);
212 enum keytype);
Dacctproc.c448 acctproc(int netsock, const char *acctkey, enum keytype keytype) in acctproc() argument
485 switch (keytype) { in acctproc()
Dmain.c254 domain->keytype); in main()
274 authority->keytype); in main()
/openbsd/src/usr.bin/signify/
Dsignify.c485 check_keytype(const char *pubkeyfile, const char *keytype) in check_keytype() argument
493 typelen = strlen(keytype); in check_keytype()
494 if (strncmp(p, keytype, typelen) != 0) in check_keytype()
501 errx(1, "incorrect keytype: %s is not %s", pubkeyfile, keytype); in check_keytype()
506 const char *sigcomment, const char *keytype) in readpubkey() argument
515 if (keytype) in readpubkey()
516 check_keytype(pubkeyfile, keytype); in readpubkey()
529 int quiet, const char *keytype) in verifysimple() argument
540 readpubkey(pubkeyfile, &pubkey, sigcomment, keytype); in verifysimple()
549 int quiet, unsigned long long *msglenp, const char *keytype) in verifyembedded() argument
[all …]
Dzsig.c184 const char *keytype) in zverify() argument
207 pubkeyfile, keytype); in zverify()
/openbsd/src/usr.sbin/relayd/
Dparse.y123 static enum key_type keytype = KEY_TYPE_NONE; variable
1436 keytype = KEY_TYPE_NONE;
1502 keytype = KEY_TYPE_COOKIE;
1503 rule->rule_kv[keytype].kv_key = strdup($3);
1504 rule->rule_kv[keytype].kv_option = $2;
1505 rule->rule_kv[keytype].kv_value = (($4 != NULL) ?
1507 if (rule->rule_kv[keytype].kv_key == NULL ||
1508 rule->rule_kv[keytype].kv_value == NULL)
1513 rule->rule_kv[keytype].kv_type = keytype;
1516 keytype = KEY_TYPE_COOKIE;
[all …]
/openbsd/src/lib/libcrypto/asn1/
Da_pkey.c144 int keytype; in d2i_AutoPrivateKey() local
156 keytype = EVP_PKEY_DSA; in d2i_AutoPrivateKey()
158 keytype = EVP_PKEY_EC; in d2i_AutoPrivateKey()
177 keytype = EVP_PKEY_RSA; in d2i_AutoPrivateKey()
179 return d2i_PrivateKey(keytype, a, pp, length); in d2i_AutoPrivateKey()
/openbsd/src/usr.bin/ssh/
Dhostfile.c349 struct sshkey *k, int keytype, int nid, const struct hostkey_entry **found) in check_hostkeys_by_key_or_type() argument
363 if (hostkeys->entries[i].key->type != keytype) in check_hostkeys_by_key_or_type()
366 sshkey_type_plain(keytype) == KEY_ECDSA && in check_hostkeys_by_key_or_type()
415 lookup_key_in_hostkeys_by_type(struct hostkeys *hostkeys, int keytype, int nid, in lookup_key_in_hostkeys_by_type() argument
418 return (check_hostkeys_by_key_or_type(hostkeys, NULL, keytype, nid, in lookup_key_in_hostkeys_by_type()
781 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
870 lineinfo.keytype = lineinfo.key->type; in hostkeys_foreach_file()
880 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach_file()
886 if (lineinfo.keytype == KEY_UNSPEC && l < 8 && in hostkeys_foreach_file()
901 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
[all …]
Dhostfile.h100 int keytype; /* Type of key; KEY_UNSPEC for invalid/comment lines */ member
Dssh-keyscan.c370 conalloc(const char *iname, const char *oname, int keytype) in conalloc() argument
390 debug3_f("oname %s kt %d", oname, keytype); in conalloc()
397 fdcon[s].c_keytype = keytype; in conalloc()
/openbsd/src/lib/libkeynote/
Dsignature.c352 kn_decode_key(struct keynote_deckey *dc, char *key, int keytype) in kn_decode_key() argument
361 if (keytype == KEYNOTE_PRIVATE_KEY) in kn_decode_key()
433 if (keytype == KEYNOTE_PRIVATE_KEY) in kn_decode_key()
465 if (keytype == KEYNOTE_PRIVATE_KEY) in kn_decode_key()
502 (keytype == KEYNOTE_PUBLIC_KEY)) in kn_decode_key()
1126 int encoding, int keytype) in kn_encode_key() argument
1148 if (keytype == KEYNOTE_PUBLIC_KEY) in kn_encode_key()
1166 if (keytype == KEYNOTE_PUBLIC_KEY) in kn_encode_key()
1211 if (keytype == KEYNOTE_PUBLIC_KEY) in kn_encode_key()
1229 if (keytype == KEYNOTE_PUBLIC_KEY) in kn_encode_key()
/openbsd/src/lib/libcrypto/evp/
Dpmeth_lib.c215 EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, in EVP_PKEY_CTX_ctrl() argument
224 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in EVP_PKEY_CTX_ctrl()
/openbsd/src/regress/usr.bin/ssh/unittests/kex/
Dtest_kex.c75 do_kex_with_key(char *kex, int keytype, int bits) in do_kex_with_key() argument
85 ASSERT_INT_EQ(sshkey_generate(keytype, bits, &private), 0); in do_kex_with_key()
/openbsd/src/gnu/usr.bin/perl/ext/Hash-Util-FieldHash/t/
D02_function.t87 my ( $keytype, $key) = @$_;
89 ok( exists $h{ $key}, "existence ($keytype)");
90 is( $h{ $key}, $val, "retrieval ($keytype)");
92 is( keys %h, 0, "deletion ($keytype)");
/openbsd/src/lib/libcrypto/pkcs12/
Dp12_crt.c75 int keytype) in PKCS12_create() argument
129 bag = PKCS12_add_key(&bags, pkey, keytype, iter, nid_key, pass); in PKCS12_create()
/openbsd/src/sbin/iked/
Dcrypto.c868 int keytype; in _dsa_verify_init() local
886 keytype = EVP_PKEY_type(EVP_PKEY_id(((EVP_PKEY *)dsa->dsa_key))); in _dsa_verify_init()
903 if (keytype == schemes[i].sc_keytype && in _dsa_verify_init()
975 int keytype; in _dsa_sign_encode() local
984 keytype = EVP_PKEY_type(EVP_PKEY_id(((EVP_PKEY *)dsa->dsa_key))); in _dsa_sign_encode()
987 if (keytype == schemes[i].sc_keytype && in _dsa_sign_encode()
Dikev2_msg.c1010 uint8_t keytype; in ikev2_msg_authverify() local
1034 keytype = 0; in ikev2_msg_authverify()
1043 keytype = id->id_type; in ikev2_msg_authverify()
1051 if (dsa_setkey(dsa, key, keylen, keytype) == NULL || in ikev2_msg_authverify()
1085 uint8_t keytype; in ikev2_msg_authsign() local
1109 keytype = 0; in ikev2_msg_authsign()
1118 keytype = id->id_type; in ikev2_msg_authsign()
1122 if (dsa_setkey(dsa, key, keylen, keytype) == NULL || in ikev2_msg_authsign()
/openbsd/src/regress/usr.bin/ssh/unittests/hostkeys/
Dtest_iterate.c86 expected->l.keytype : expected->no_parse_keytype; in check()
89 if (expected->l.keytype == KEY_DSA || in check()
119 ASSERT_INT_EQ(l->keytype, expected_keytype); in check()
143 if (expected[i].l.keytype == KEY_DSA) in prepare_expected()
/openbsd/src/usr.sbin/pwd_mkdb/
Dpwd_mkdb.c516 int keytype, char *username, uid_t olduid) in db_store() argument
571 tbuf[0] = keytype; in db_store()
572 switch (keytype) { in db_store()

12