Home
last modified time | relevance | path

Searched refs:key_id (Results 1 – 25 of 39) sorted by relevance

12

/netbsd-src/external/bsd/ntp/dist/sntp/tests/
H A DkeyFile.c13 bool CompareKeysAlternative(int key_id,int key_len,const char* type,const char* key_seq,struct key …
27 if (expected.key_id != actual.key_id) { in CompareKeys()
29 expected.key_id, actual.key_id); in CompareKeys()
53 int key_id, in CompareKeysAlternative() argument
62 temp.key_id = key_id; in CompareKeysAlternative()
/netbsd-src/external/bsd/ntp/dist/sntp/
H A Dnetworking.c109 u_int key_id; in process_pkt() local
164 key_id = ntohl(*exten_end); in process_pkt()
165 printf("Crypto NAK = 0x%08x from %s\n", key_id, stoa(sender)); in process_pkt()
181 key_id = ntohl(*exten_end); in process_pkt()
182 get_key(key_id, &pkt_key); in process_pkt()
184 printf("unrecognized key ID = 0x%08x\n", key_id); in process_pkt()
202 func_name, stoa(sender), key_id)); in process_pkt()
H A Dmain.h24 int key_id, struct key *pkt_key);
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Deng_pkey.c53 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() argument
75 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key()
84 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key() argument
105 pkey = e->load_pubkey(e, key_id, ui_method, callback_data); in ENGINE_load_public_key()
H A Deng_openssl.c67 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id,
400 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id, in openssl_load_privkey() argument
407 key_id); in openssl_load_privkey()
408 in = BIO_new_file(key_id, "r"); in openssl_load_privkey()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/engine/
H A Deng_pkey.c56 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() argument
77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key()
85 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key() argument
106 pkey = e->load_pubkey(e, key_id, ui_method, callback_data); in ENGINE_load_public_key()
H A Deng_openssl.c76 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id,
417 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id, in openssl_load_privkey() argument
424 key_id); in openssl_load_privkey()
425 in = BIO_new_file(key_id, "r"); in openssl_load_privkey()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dkrl.c70 char *key_id; member
119 return strcmp(a->key_id, b->key_id); in key_id_cmp()
161 free(rki->key_id); in revoked_certs_free()
349 const char *key_id) in ssh_krl_revoke_cert_by_key_id() argument
358 KRL_DBG(("revoke %s", key_id)); in ssh_krl_revoke_cert_by_key_id()
360 (rki->key_id = strdup(key_id)) == NULL) { in ssh_krl_revoke_cert_by_key_id()
366 free(rki->key_id); in ssh_krl_revoke_cert_by_key_id()
468 key->cert->key_id); in ssh_krl_revoke_key()
721 KRL_DBG(("key ID %s", rki->key_id)); in revoked_certs_generate()
722 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0) in revoked_certs_generate()
[all …]
H A Dkrl.h56 const struct sshkey *ca_key, const char *key_id);
H A DPROTOCOL.krl113 string key_id[0]
116 This section must contain at least one "key_id". This section may appear
H A Dauth2-hostbased.c241 "%s CA %s from %s@%s", key->cert->key_id, in hostbased_key_allowed()
/netbsd-src/external/bsd/libfido2/dist/src/
H A Du2f.c200 key_lookup(fido_dev_t *dev, const char *rp_id, const fido_blob_t *key_id, in key_lookup() argument
210 if (key_id->len > UINT8_MAX || rp_id == NULL) { in key_lookup()
212 key_id->len, (const void *)rp_id); in key_lookup()
227 key_id_len = (uint8_t)key_id->len; in key_lookup()
234 iso7816_add(apdu, key_id->ptr, key_id_len) < 0) { in key_lookup()
314 const fido_blob_t *key_id, fido_blob_t *sig, fido_blob_t *ad, int *ms) in do_auth() argument
327 if (cdh->len != SHA256_DIGEST_LENGTH || key_id->len > UINT8_MAX || in do_auth()
342 key_id_len = (uint8_t)key_id->len; in do_auth()
349 iso7816_add(apdu, key_id->ptr, key_id_len) < 0) { in do_auth()
759 u2f_authenticate_single(fido_dev_t *dev, const fido_blob_t *key_id, in u2f_authenticate_single() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/apps/lib/
H A Dengine.c105 char *make_engine_uri(ENGINE *e, const char *key_id, const char *desc) in make_engine_uri() argument
112 } else if (key_id == NULL) { in make_engine_uri()
120 + strlen(key_id) in make_engine_uri()
129 OPENSSL_strlcat(new_uri, key_id, uri_sz); in make_engine_uri()
/netbsd-src/crypto/external/bsd/openssl/dist/engines/
H A De_ossltest.c376 static EVP_PKEY *load_key(ENGINE *eng, const char *key_id, int pub, in load_key() argument
382 if (OPENSSL_strncasecmp(key_id, "ot:", 3) != 0) in load_key()
384 key_id += 3; in load_key()
387 pub ? "Public" : "Private", key_id); in load_key()
388 in = BIO_new_file(key_id, "r"); in load_key()
399 static EVP_PKEY *ossltest_load_privkey(ENGINE *eng, const char *key_id, in ossltest_load_privkey() argument
402 return load_key(eng, key_id, 0, ui_method, ui_data); in ossltest_load_privkey()
405 static EVP_PKEY *ossltest_load_pubkey(ENGINE *eng, const char *key_id, in ossltest_load_pubkey() argument
408 return load_key(eng, key_id, 1, ui_method, ui_data); in ossltest_load_pubkey()
/netbsd-src/external/bsd/wpa/dist/wpa_supplicant/examples/
H A DopenCryptoki.conf34 key_id="4"
/netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/
H A Dcreate.c1009 (void) memcpy(sesskey->key_id, id, sizeof(sesskey->key_id)); in pgp_create_pk_sesskey()
1012 hexdump(stderr, "Encrypting for keyid", id, sizeof(sesskey->key_id)); in pgp_create_pk_sesskey()
1099 pgp_write(output, pksk->key_id, 8) && in pgp_write_pk_sesskey()
1111 pgp_write(output, pksk->key_id, 8) && in pgp_write_pk_sesskey()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Ddst_api.c565 if (!dns_name_equal(name, key->key_name) || id != key->key_id || in dst_key_fromfile()
692 if (pubkey->key_id != key->key_id) { in dst_key_fromnamedfile()
801 key->key_id = id; in dst_key_fromdns_ex()
1286 if (key1->key_id != key2->key_id) { in comparekeys()
1295 if (key1->key_id != key2->key_rid && in comparekeys()
1296 key1->key_rid != key2->key_id) in comparekeys()
1447 return buildfilename(key->key_name, key->key_id, key->key_alg, type, in dst_key_buildfilename()
2096 fprintf(fp, "; This is the state of key %d, for ", key->key_id);
[all...]
H A Dkey.c114 return key->key_id; in dst_key_id()
H A Ddst_internal.h89 uint16_t key_id; /*%< identifier of the key */
90 uint16_t key_id; /*%< identifier of the key */ global() member
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Ddst_api.c586 if (!dns_name_equal(name, key->key_name) || id != key->key_id || in dst_key_fromfile()
722 if (pubkey->key_id != key->key_id) { in dst_key_fromnamedfile()
827 key->key_id = id; in dst_key_fromdns_ex()
1276 if (key1->key_id != key2->key_id) { in comparekeys()
1285 if (key1->key_id != key2->key_rid && in comparekeys()
1286 key1->key_rid != key2->key_id) in comparekeys()
1433 return (buildfilename(key->key_name, key->key_id, key->key_alg, type, in dst_key_buildfilename()
2114 fprintf(fp, "; This is the state of key %d, for ", key->key_id); in write_key_state()
2238 key->key_id); in write_public_key()
2342 key->key_id = dst_region_computeid(&r); in computeid()
H A Dkey.c113 return (key->key_id); in dst_key_id()
H A Ddst_internal.h110 uint16_t key_id; /*%< identifier of the key */ member
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dengine.h574 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
576 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Dengine.h638 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
641 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,
/netbsd-src/lib/libc/nameser/
H A Dns_print.c464 u_int keyflags, protocol, algorithm, key_id; in ns_sprintrrf() local
473 key_id = dst_s_dns_key_id(rdata, edata-rdata); in ns_sprintrrf()
475 key_id = 0; in ns_sprintrrf()
502 n = SPRINTF((tmp, " ; key_tag= %u", key_id)); in ns_sprintrrf()

12