Home
last modified time | relevance | path

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

123456

/freebsd-13.1/contrib/ntp/libntp/
H A Dauthreadkeys.c92 u_short keytype; /* stored key type */ member
143 int keytype; in authreadkeys() local
219 keytype = keytype_from_text(token, NULL); in authreadkeys()
220 if (keytype == 0) { in authreadkeys()
225 } else if (NID_cmac != keytype && in authreadkeys()
230 keytype = 0; in authreadkeys()
242 keytype = 0; in authreadkeys()
244 keytype = KEY_TYPE_MD5; in authreadkeys()
266 next->keytype = keytype; in authreadkeys()
296 next->keytype = keytype; in authreadkeys()
[all …]
H A Dauthusekey.c22 int keytype, in authusekey() argument
32 MD5auth_setkey(keyno, keytype, str, len, NULL); in authusekey()
/freebsd-13.1/contrib/bearssl/test/x509/
H A Dalltests.txt137 keytype = RSA
149 keytype = RSA
159 keytype = RSA
170 keytype = RSA
181 keytype = RSA
192 keytype = RSA
203 keytype = RSA
214 keytype = RSA
226 keytype = RSA
237 keytype = RSA
[all …]
/freebsd-13.1/crypto/openssh/regress/
H A Dknownhosts-command.sh41 for keytype in ${SSH_HOSTKEY_TYPES} ; do
42 test "x$keytype" = "xssh-dss" && continue
43 verbose "keytype $keytype"
47 test "x\$1" = "x$keytype" || die "wrong keytype \$1 (expected $keytype)"
51 ${SSH} -F $OBJ/ssh_proxy -oHostKeyAlgorithms=$keytype x true ||
H A 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 \
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dmk_req_ext.c82 if(ac->keyblock->keytype == ETYPE_DES_CBC_CRC) { in _krb5_mk_req_internal()
91 } else if(ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5 || in _krb5_mk_req_internal()
92 ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5_56 || in _krb5_mk_req_internal()
93 ac->keyblock->keytype == ETYPE_DES_CBC_MD4 || in _krb5_mk_req_internal()
94 ac->keyblock->keytype == ETYPE_DES_CBC_MD5) { in _krb5_mk_req_internal()
128 ac->keyblock->keytype, in _krb5_mk_req_internal()
138 ret = krb5_build_ap_req (context, ac->keyblock->keytype, in _krb5_mk_req_internal()
H A Ddeprecated.c67 krb5_keytype keytype, in krb5_keytype_to_enctypes_default() argument
75 if (keytype != KEYTYPE_DES || context->etypes_des == NULL) in krb5_keytype_to_enctypes_default()
76 return krb5_keytype_to_enctypes (context, keytype, len, val); in krb5_keytype_to_enctypes_default()
117 krb5_keytype keytype, in krb5_keytype_to_string() argument
125 if(keys[i].type == keytype) { in krb5_keytype_to_string()
133 "key type %d not supported", keytype); in krb5_keytype_to_string()
155 krb5_keytype *keytype) in krb5_string_to_keytype() argument
163 *keytype = keys[i].type; in krb5_string_to_keytype()
168 *keytype = strtol(string, &end, 0); in krb5_string_to_keytype()
169 if(*end == '\0' && *keytype != 0) { in krb5_string_to_keytype()
[all …]
H A Dkeyblock.c47 keyblock->keytype = 0; in krb5_keyblock_zero()
68 keyblock->keytype = ENCTYPE_NULL; in krb5_free_keyblock_contents()
161 return block->keytype; in krb5_keyblock_get_enctype()
201 key->keytype = type; in krb5_keyblock_init()
H A Dauth_context.c61 p->keytype = ENCTYPE_NULL; in krb5_auth_con_init()
331 auth_context->keytype, in krb5_auth_con_generatelocalsubkey()
373 krb5_keytype keytype) in krb5_auth_con_setkeytype() argument
375 auth_context->keytype = keytype; in krb5_auth_con_setkeytype()
382 krb5_keytype *keytype) in krb5_auth_con_getkeytype() argument
384 *keytype = auth_context->keytype; in krb5_auth_con_getkeytype()
399 auth_context->keyblock->keytype = etype;
H A Dsalt-aes.c70 kd.key->keytype = enctype; in AES_string_to_key()
71 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); in AES_string_to_key()
80 et->keytype->size, kd.key->keyvalue.data); in AES_string_to_key()
H A Dsalt.c53 for (st = e->keytype->string_to_key; st && st->type; st++) { in krb5_salttype_to_string()
85 for (st = e->keytype->string_to_key; st && st->type; st++) { in krb5_string_to_salttype()
199 for(st = et->keytype->string_to_key; st && st->type; st++) in krb5_string_to_key_data_salt_opaque()
263 keylen = et->keytype->bits / 8; in krb5_string_to_key_derived()
271 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); in krb5_string_to_key_derived()
276 kd.key->keytype = etype; in krb5_string_to_key_derived()
H A Dmk_req.c62 if (auth_context && *auth_context && (*auth_context)->keytype) in krb5_mk_req_exact()
63 this_cred.session.keytype = (*auth_context)->keytype; in krb5_mk_req_exact()
H A Dcrypto.c121 key->keytype = type; in krb5_generate_random_keyblock()
122 if(et->keytype->random_key) in krb5_generate_random_keyblock()
143 kt = et->keytype; in _key_schedule()
696 krb5_keytype *keytype) in krb5_enctype_to_keytype() argument
702 *keytype = e->keytype->type; /* XXX */ in krb5_enctype_to_keytype()
2037 etype = key->keytype; in krb5_crypto_init()
2418 key->keytype = type; in krb5_random_to_key()
2594 krb5_keytype keytype, in krb5_keytype_to_enctypes() argument
2604 if (_krb5_etypes[i]->keytype->type == keytype in krb5_keytype_to_enctypes()
2622 if (_krb5_etypes[i]->keytype->type == keytype in krb5_keytype_to_enctypes()
[all …]
/freebsd-13.1/crypto/heimdal/lib/kadm5/
H A Dset_keys.c99 keys[i].key.keytype = key_data[i].key_data_type[0]; in _kadm5_set_keys2()
183 is_des_key_p(int keytype) in is_des_key_p() argument
185 return keytype == ETYPE_DES_CBC_CRC || in is_des_key_p()
186 keytype == ETYPE_DES_CBC_MD4 || in is_des_key_p()
187 keytype == ETYPE_DES_CBC_MD5; in is_des_key_p()
229 if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) { in _kadm5_set_keys_randomly()
235 kblock[i].keytype = keys[i].key.keytype; in _kadm5_set_keys_randomly()
238 keys[i].key.keytype, in _kadm5_set_keys_randomly()
243 if (is_des_key_p(keys[i].key.keytype)) in _kadm5_set_keys_randomly()
/freebsd-13.1/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc158 get_pubkey(struct shared_state *st, int keytype) in get_pubkey() argument
160 if (st == NULL || keytype < 0 || (size_t)keytype >= st->nkeys || in get_pubkey()
161 st->pubkeys == NULL || st->pubkeys[keytype] == NULL) in get_pubkey()
163 return st->pubkeys[keytype]; in get_pubkey()
167 get_privkey(struct shared_state *st, int keytype) in get_privkey() argument
169 if (st == NULL || keytype < 0 || (size_t)keytype >= st->nkeys || in get_privkey()
170 st->privkeys == NULL || st->privkeys[keytype] == NULL) in get_privkey()
172 return st->privkeys[keytype]; in get_privkey()
177 const char *kex, int keytype) in do_kex_with_key() argument
195 pubkey = get_pubkey(st, keytype); in do_kex_with_key()
[all …]
/freebsd-13.1/crypto/openssl/crypto/asn1/
H A Dd2i_pr.c107 int keytype; in d2i_AutoPrivateKey() local
140 keytype = EVP_PKEY_DSA; in d2i_AutoPrivateKey()
142 keytype = EVP_PKEY_EC; in d2i_AutoPrivateKey()
144 keytype = EVP_PKEY_RSA; in d2i_AutoPrivateKey()
147 ret = d2i_PrivateKey(keytype, a, pp, length); in d2i_AutoPrivateKey()
/freebsd-13.1/crypto/heimdal/admin/
H A Dcopy.c42 if(a->keytype != b->keytype || in compare_keyblock()
90 ret = krb5_enctype_to_string(context, entry.keyblock.keytype, &etype_str); in kt_copy()
98 entry.keyblock.keytype, in kt_copy()
/freebsd-13.1/crypto/heimdal/lib/gssapi/krb5/
H A Dinquire_sec_context_by_oid.c102 enum keytype { ACCEPTOR_KEY, INITIATOR_KEY, TOKEN_KEY }; enum
108 enum keytype keytype, in inquire_sec_context_get_subkey() argument
127 switch(keytype) { in inquire_sec_context_get_subkey()
138 _gsskrb5_set_status(EINVAL, "%d is not a valid subkey type", keytype); in inquire_sec_context_get_subkey()
146 _gsskrb5_set_status(EINVAL, "have no subkey of type %d", keytype); in inquire_sec_context_get_subkey()
293 is_updated = (acceptor_subkey->keytype != in inquire_sec_context_has_updated_spnego()
294 context_handle->auth_context->keyblock->keytype); in inquire_sec_context_has_updated_spnego()
361 switch (key->keytype) { in export_lucid_sec_context_v1()
H A Dwrap.c150 krb5_keytype keytype; in _gsskrb5_wrap_size_limit() local
167 krb5_enctype_to_keytype (context, key->keytype, &keytype); in _gsskrb5_wrap_size_limit()
169 switch (keytype) { in _gsskrb5_wrap_size_limit()
550 krb5_keytype keytype; in _gsskrb5_wrap() local
570 krb5_enctype_to_keytype (context, key->keytype, &keytype); in _gsskrb5_wrap()
572 switch (keytype) { in _gsskrb5_wrap()
H A Dget_mic.c298 krb5_keytype keytype; in _gsskrb5_get_mic() local
313 krb5_enctype_to_keytype (context, key->keytype, &keytype); in _gsskrb5_get_mic()
315 switch (keytype) { in _gsskrb5_get_mic()
/freebsd-13.1/crypto/openssh/
H A Dhostfile.c352 struct sshkey *k, int keytype, int nid, const struct hostkey_entry **found) in check_hostkeys_by_key_or_type() argument
366 if (hostkeys->entries[i].key->type != keytype) in check_hostkeys_by_key_or_type()
369 sshkey_type_plain(keytype) == KEY_ECDSA && in check_hostkeys_by_key_or_type()
418 lookup_key_in_hostkeys_by_type(struct hostkeys *hostkeys, int keytype, int nid, in lookup_key_in_hostkeys_by_type() argument
421 return (check_hostkeys_by_key_or_type(hostkeys, NULL, keytype, nid, in lookup_key_in_hostkeys_by_type()
777 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
866 lineinfo.keytype = lineinfo.key->type; in hostkeys_foreach_file()
876 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach_file()
882 if (lineinfo.keytype == KEY_UNSPEC && l < 8 && in hostkeys_foreach_file()
897 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
[all …]
/freebsd-13.1/crypto/heimdal/kdc/
H A Dmisc.c157 if (krb5_enctype_valid(context, h->entry.keys.val[i].key.keytype) in _kdc_get_preferred_key()
161 h->entry.keys.val[i].key.keytype, key); in _kdc_get_preferred_key()
165 *enctype = (*key)->key.keytype; in _kdc_get_preferred_key()
/freebsd-13.1/crypto/heimdal/lib/kafs/
H A Dafskrb5.c164 in_creds.session.keytype = ETYPE_DES_CBC_CRC; in get_cred()
167 invalid = krb5_enctype_valid(d->context, in_creds.session.keytype); in get_cred()
169 krb5_enctype_enable(d->context, in_creds.session.keytype); in get_cred()
173 in_creds.session.keytype = ETYPE_DES_CBC_MD5; in get_cred()
178 krb5_enctype_disable(d->context, in_creds.session.keytype); in get_cred()
/freebsd-13.1/crypto/heimdal/lib/hdb/
H A Dmkey.c79 (*mkey)->keytab.keyblock.keytype = etype; in hdb_process_master_key()
179 key.keytype = enctype; in read_master_mit()
231 if(key.keytype == ETYPE_DES_CBC_CRC || key.keytype == ETYPE_DES_CBC_MD5) in read_master_encryptionkey()
232 key.keytype = ETYPE_DES_CFB64_NONE; in read_master_encryptionkey()
273 key.keytype = ETYPE_DES_PCBC_NONE; in read_master_krb4()
439 ret = krb5_enctype_keysize(context, k->key.keytype, &keysize); in hdb_unseal_key_mkey()
/freebsd-13.1/crypto/openssl/doc/man3/
H A DPKCS12_create.pod13 int nid_key, int nid_cert, int iter, int mac_iter, int keytype);
28 B<keytype> is the type of key.
32 The parameters B<nid_key>, B<nid_cert>, B<iter>, B<mac_iter> and B<keytype>
43 B<keytype> adds a flag to the store private key. This is a non standard extension

123456