Home
last modified time | relevance | path

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

1234567

/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dendecoder_legacy_test.c73 const char *keytype; member
216 const char *keytype; member
280 if (strcmp(keys[i].keytype, type) == 0) in lookup_key()
298 static int test_protected_PEM(const char *keytype, int evp_type, in test_protected_PEM() argument
338 keytype, selection, in test_protected_PEM()
366 static int test_unprotected_PEM(const char *keytype, int evp_type, in test_unprotected_PEM() argument
405 keytype, selection, in test_unprotected_PEM()
433 static int test_DER(const char *keytype, int evp_type, in test_DER() argument
472 keytype, selection, in test_DER()
515 || !TEST_ptr(key = lookup_key(test_stanza->keytype))) in test_key()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/
H A Daeap.c53 krb5_keytype keytype; in _gk_wrap_iov() local
69 krb5_enctype_to_keytype(context, key->keytype, &keytype); in _gk_wrap_iov()
71 switch (keytype) { in _gk_wrap_iov()
99 krb5_keytype keytype; in _gk_unwrap_iov() local
115 krb5_enctype_to_keytype(context, key->keytype, &keytype); in _gk_unwrap_iov()
117 switch (keytype) { in _gk_unwrap_iov()
146 krb5_keytype keytype; in _gk_wrap_iov_length() local
163 krb5_enctype_to_keytype(context, key->keytype, &keytype); in _gk_wrap_iov_length()
165 switch (keytype) { in _gk_wrap_iov_length()
H A Dinquire_sec_context_by_oid.c104 enum keytype { ACCEPTOR_KEY, INITIATOR_KEY, TOKEN_KEY }; enum
110 enum keytype keytype, in inquire_sec_context_get_subkey() argument
129 switch(keytype) { in inquire_sec_context_get_subkey()
140 _gsskrb5_set_status(EINVAL, "%d is not a valid subkey type", keytype); in inquire_sec_context_get_subkey()
148 _gsskrb5_set_status(EINVAL, "have no subkey of type %d", keytype); in inquire_sec_context_get_subkey()
295 is_updated = (acceptor_subkey->keytype != in inquire_sec_context_has_updated_spnego()
296 context_handle->auth_context->keyblock->keytype); in inquire_sec_context_has_updated_spnego()
364 switch (key->keytype) { in export_lucid_sec_context_v1()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dd2i_pr.c27 d2i_PrivateKey_decoder(int keytype, EVP_PKEY **a, const unsigned char **pp, in d2i_PrivateKey_decoder() argument
38 if (keytype != EVP_PKEY_NONE) { in d2i_PrivateKey_decoder()
39 key_name = evp_pkey_type2name(keytype); in d2i_PrivateKey_decoder()
78 ossl_d2i_PrivateKey_legacy(int keytype, EVP_PKEY **a, const unsigned char **pp, in ossl_d2i_PrivateKey_legacy() argument
97 if (!EVP_PKEY_set_type(ret, keytype)) { in ossl_d2i_PrivateKey_legacy()
123 if (EVP_PKEY_type(keytype) != EVP_PKEY_get_base_id(ret)) in ossl_d2i_PrivateKey_legacy()
143 EVP_PKEY *d2i_PrivateKey_ex(int keytype, EVP_PKEY **a, const unsigned char **pp, in d2i_PrivateKey_ex() argument
149 ret = d2i_PrivateKey_decoder(keytype, a, pp, length, libctx, propq); in d2i_PrivateKey_ex()
152 ret = ossl_d2i_PrivateKey_legacy(keytype, a, pp, length, libctx, propq); in d2i_PrivateKey_ex()
170 int keytype; in d2i_AutoPrivateKey_legacy() local
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Ddecode_pvk2key.c224 #define IMPLEMENT_MS(KEYTYPE, keytype) \ argument
226 pvk2##keytype##_desc = { \
228 ossl_##keytype##_keymgmt_functions, \
229 keytype##_private_key_bio, \
230 keytype##_adjust, \
231 keytype##_free \
233 static OSSL_FUNC_decoder_newctx_fn pvk2##keytype##_newctx; \
234 static void *pvk2##keytype##_newctx(void *provctx) \
236 return pvk2key_newctx(provctx, &pvk2##keytype##_desc); \
239 ossl_##pvk_to_##keytype##_decoder_functions[] = { \
[all …]
H A Ddecode_msblob2key.c259 #define IMPLEMENT_MSBLOB(KEYTYPE, keytype) \ argument
260 static const struct keytype_desc_st mstype##2##keytype##_desc = { \
262 ossl_##keytype##_keymgmt_functions, \
263 keytype##_decode_private_key, \
264 keytype##_decode_public_key, \
265 keytype##_adjust, \
266 keytype##_free \
268 static OSSL_FUNC_decoder_newctx_fn msblob2##keytype##_newctx; \
269 static void *msblob2##keytype##_newctx(void *provctx) \
271 return msblob2key_newctx(provctx, &mstype##2##keytype##_desc); \
[all …]
H A Ddecode_epki2pki.c131 char keytype[OSSL_MAX_NAME_SIZE]; in epki2pki_decode() local
135 OBJ_obj2txt(keytype, sizeof(keytype), alg->algorithm, 0); in epki2pki_decode()
138 keytype, 0); in epki2pki_decode()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dmk_req_ext.c84 if(ac->keyblock->keytype == ETYPE_DES_CBC_CRC) { in _krb5_mk_req_internal()
93 } else if(ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5 || in _krb5_mk_req_internal()
94 ac->keyblock->keytype == ETYPE_ARCFOUR_HMAC_MD5_56 || in _krb5_mk_req_internal()
95 ac->keyblock->keytype == ETYPE_DES_CBC_MD4 || in _krb5_mk_req_internal()
96 ac->keyblock->keytype == ETYPE_DES_CBC_MD5) { in _krb5_mk_req_internal()
130 ac->keyblock->keytype, in _krb5_mk_req_internal()
140 ret = krb5_build_ap_req (context, ac->keyblock->keytype, in _krb5_mk_req_internal()
H A Ddeprecated.c75 krb5_keytype keytype, in krb5_keytype_to_enctypes_default() argument
83 if (keytype != (krb5_keytype)KEYTYPE_DES || context->etypes_des == NULL) in krb5_keytype_to_enctypes_default()
84 return krb5_keytype_to_enctypes (context, keytype, len, val); in krb5_keytype_to_enctypes_default()
123 krb5_keytype keytype, in krb5_keytype_to_string() argument
131 if(keys[i].type == keytype) { in krb5_keytype_to_string()
139 "key type %d not supported", keytype); in krb5_keytype_to_string()
158 krb5_keytype *keytype) in krb5_string_to_keytype() argument
166 *keytype = keys[i].type; in krb5_string_to_keytype()
171 *keytype = strtol(string, &end, 0); in krb5_string_to_keytype()
172 if(*end == '\0' && *keytype != 0) { in krb5_string_to_keytype()
[all …]
H A Dkeyblock.c49 keyblock->keytype = 0; in krb5_keyblock_zero()
70 keyblock->keytype = KRB5_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.c70 p->keytype = KRB5_ENCTYPE_NULL; in krb5_auth_con_init()
357 auth_context->keytype, in krb5_auth_con_generatelocalsubkey()
399 krb5_keytype keytype) in krb5_auth_con_setkeytype() argument
401 auth_context->keytype = keytype; in krb5_auth_con_setkeytype()
408 krb5_keytype *keytype) in krb5_auth_con_getkeytype() argument
410 *keytype = auth_context->keytype; in krb5_auth_con_getkeytype()
447 auth_context->keyblock->keytype = etype;
H A Dsalt.c56 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()
268 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); in krb5_string_to_key_derived()
273 kd.key->keytype = etype; in krb5_string_to_key_derived()
H A Dsalt-aes-sha1.c70 kd.key->keytype = enctype; in AES_SHA1_string_to_key()
71 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); in AES_SHA1_string_to_key()
81 et->keytype->size, kd.key->keyvalue.data); in AES_SHA1_string_to_key()
H A Dmk_req.c64 if (auth_context && *auth_context && (*auth_context)->keytype) in krb5_mk_req_exact()
65 this_cred.session.keytype = (*auth_context)->keytype; in krb5_mk_req_exact()
H A Dcrypto.c93 *keysize = et->keytype->size; in krb5_enctype_keysize()
106 *keybits = et->keytype->bits; in krb5_enctype_keybits()
120 ret = krb5_data_alloc(&key->keyvalue, et->keytype->size); in krb5_generate_random_keyblock()
123 key->keytype = type; in krb5_generate_random_keyblock()
124 if(et->keytype->random_key) in krb5_generate_random_keyblock()
125 (*et->keytype->random_key)(context, key); in krb5_generate_random_keyblock()
137 struct _krb5_encryption_type *et = _krb5_find_enctype(key->key->keytype); in _key_schedule()
142 key->key->keytype); in _key_schedule()
145 kt = et->keytype; in _key_schedule()
385 (crypto->key.key->keytype == KEYTYPE_ARCFOUR); in arcfour_checksum_p()
[all …]
H A Dsalt-aes-sha2.c83 kd.key->keytype = enctype; in AES_SHA2_string_to_key()
84 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); in AES_SHA2_string_to_key()
108 et->keytype->size, kd.key->keyvalue.data); in AES_SHA2_string_to_key()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/encode_decode/
H A Ddecoder_pkey.c307 EVP_PKEY **pkey, const char *keytype, in ossl_decoder_ctx_setup_for_pkey() argument
319 if (keytype != NULL in ossl_decoder_ctx_setup_for_pkey()
320 && (strcmp(keytype, "id-ecPublicKey") == 0 in ossl_decoder_ctx_setup_for_pkey()
321 || strcmp(keytype, "1.2.840.10045.2.1") == 0)) in ossl_decoder_ctx_setup_for_pkey()
328 keytype != NULL ? keytype : "", in ossl_decoder_ctx_setup_for_pkey()
329 keytype != NULL ? " keys" : "keys of any type", in ossl_decoder_ctx_setup_for_pkey()
365 if (keytype == NULL in ossl_decoder_ctx_setup_for_pkey()
366 || EVP_KEYMGMT_is_a(keymgmt, keytype) in ossl_decoder_ctx_setup_for_pkey()
433 const char *keytype, int selection, in OSSL_DECODER_CTX_new_for_pkey() argument
446 (void *)ctx, keytype, selection); in OSSL_DECODER_CTX_new_for_pkey()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dset_keys.c85 k->key.keytype = kd[kd_offset].key_data_type[0]; in setup_Key()
324 is_des_key_p(int keytype) in is_des_key_p() argument
326 return keytype == ETYPE_DES_CBC_CRC || in is_des_key_p()
327 keytype == ETYPE_DES_CBC_MD4 || in is_des_key_p()
328 keytype == ETYPE_DES_CBC_MD5; in is_des_key_p()
372 if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) { in _kadm5_set_keys_randomly()
378 kblock[i].keytype = keys[i].key.keytype; in _kadm5_set_keys_randomly()
381 keys[i].key.keytype, in _kadm5_set_keys_randomly()
386 if (is_des_key_p(keys[i].key.keytype)) in _kadm5_set_keys_randomly()
/netbsd-src/crypto/external/bsd/openssl.old/dist/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()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hdb/
H A Dprint.c163 key->key.keytype, key->key.keyvalue.length + 2); in append_mit_key()
165 ret = krb5_enctype_keysize(context, key->key.keytype, &decrypted_key_length); in append_mit_key()
239 ent->keys.val[i].key.keytype); in entry2string_int()
242 ent->keys.val[i].key.keytype); in entry2string_int()
405 if (ent->keys.val[i].key.keytype == ETYPE_DES_CBC_MD4 || in entry2mit_string_int()
406 ent->keys.val[i].key.keytype == ETYPE_DES_CBC_MD5) in entry2mit_string_int()
420 if (ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD4 || in entry2mit_string_int()
421 ent->keys.val[k].key.keytype == ETYPE_DES_CBC_MD5) in entry2mit_string_int()
502 if (ent->keys.val[i].key.keytype == ETYPE_DES_CBC_MD4 || in entry2mit_string_int()
503 ent->keys.val[i].key.keytype == ETYPE_DES_CBC_MD5) in entry2mit_string_int()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/admin/
H A Dcopy.c44 if(a->keytype != b->keytype || in compare_keyblock()
92 ret = krb5_enctype_to_string(context, entry.keyblock.keytype, &etype_str); in kt_copy()
100 entry.keyblock.keytype, in kt_copy()
/netbsd-src/crypto/external/bsd/heimdal/dist/kdc/
H A Dmisc.c206 if (krb5_enctype_valid(context, h->entry.keys.val[i].key.keytype) != 0 && in _kdc_get_preferred_key()
207 !_kdc_is_weak_exception(h->entry.principal, h->entry.keys.val[i].key.keytype)) in _kdc_get_preferred_key()
210 h->entry.keys.val[i].key.keytype, key); in _kdc_get_preferred_key()
214 *enctype = (*key)->key.keytype; in _kdc_get_preferred_key()
/netbsd-src/crypto/external/bsd/openssh/dist/
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()
784 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
873 lineinfo.keytype = lineinfo.key->type; in hostkeys_foreach_file()
883 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach_file()
889 if (lineinfo.keytype == KEY_UNSPEC && l < 8 && in hostkeys_foreach_file()
904 lineinfo.keytype = KEY_UNSPEC; in hostkeys_foreach_file()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DOSSL_DECODER_from_bio.pod56 const char *keytype = "RSA"; /* NULL for any key */
60 keytype,
81 const char *keytype = "EC"; /* NULL for any key */
87 keytype,
/netbsd-src/crypto/external/bsd/openssl.old/dist/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

1234567