Home
last modified time | relevance | path

Searched refs:kc (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/sys/kgssapi/krb5/
H A Dkrb5_mech.c224 is_initiator(struct krb5_context *kc) in is_initiator() argument
226 return (kc->kc_more_flags & LOCAL); in is_initiator()
233 is_acceptor(struct krb5_context *kc) in is_acceptor() argument
235 return !(kc->kc_more_flags & LOCAL); in is_acceptor()
239 get_initiator_subkey(struct krb5_context *kc, struct krb5_keyblock **kdp) in get_initiator_subkey() argument
242 if (is_initiator(kc)) in get_initiator_subkey()
243 copy_key(&kc->kc_local_subkey, kdp); in get_initiator_subkey()
245 copy_key(&kc->kc_remote_subkey, kdp); in get_initiator_subkey()
247 copy_key(&kc->kc_keyblock, kdp); in get_initiator_subkey()
251 get_acceptor_subkey(struct krb5_context *kc, struct krb5_keyblock **kdp) in get_acceptor_subkey() argument
[all …]
/freebsd/contrib/bearssl/src/rand/
H A Dhmac_drbg.c47 br_hmac_key_context kc; in br_hmac_drbg_generate() local
55 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_generate()
60 br_hmac_init(&hc, &kc, 0); in br_hmac_drbg_generate()
79 br_hmac_init(&hc, &kc, 0); in br_hmac_drbg_generate()
84 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_generate()
85 br_hmac_init(&hc, &kc, 0); in br_hmac_drbg_generate()
95 br_hmac_key_context kc; in br_hmac_drbg_update() local
106 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_update()
107 br_hmac_init(&hc, &kc, 0); in br_hmac_drbg_update()
113 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_update()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dmemstat.c91 static kstat_ctl_t *kc;
109 kc = kstat_open();
110 if (kc == NULL)
112 kst = kstat_lookup(kc, "unix", 0,
134 if (kc == NULL)
136 r = kstat_close(kc);
162 if (kc == NULL || kst == NULL)
164 if (kstat_read(kc, kst, NULL) == -1)
/freebsd/contrib/bearssl/src/mac/
H A Dhmac.c57 br_hmac_key_init(br_hmac_key_context *kc, in br_hmac_key_init() argument
63 kc->dig_vtable = dig; in br_hmac_key_init()
72 process_key(&hc.vtable, kc->ksi, key, key_len, 0x36); in br_hmac_key_init()
73 process_key(&hc.vtable, kc->kso, key, key_len, 0x5C); in br_hmac_key_init()
79 const br_hmac_key_context *kc, size_t out_len) in br_hmac_init() argument
84 dig = kc->dig_vtable; in br_hmac_init()
87 dig->set_state(&ctx->dig.vtable, kc->ksi, (uint64_t)blen); in br_hmac_init()
88 memcpy(ctx->kso, kc->kso, sizeof kc->kso); in br_hmac_init()
/freebsd/crypto/heimdal/lib/hx509/
H A Dks_keychain.c110 struct kc_rsa *kc = RSA_get_app_data(rsa); in kc_rsa_private_encrypt() local
115 SecKeyRef privKeyRef = (SecKeyRef)kc->item; in kc_rsa_private_encrypt()
143 sig.Length = kc->keysize; in kc_rsa_private_encrypt()
162 struct kc_rsa *kc = RSA_get_app_data(rsa); in kc_rsa_private_decrypt() local
167 SecKeyRef privKeyRef = (SecKeyRef)kc->item; in kc_rsa_private_decrypt()
202 out.Length = kc->keysize; in kc_rsa_private_decrypt()
257 struct kc_rsa *kc; in set_private_key() local
266 kc = calloc(1, sizeof(*kc)); in set_private_key()
267 if (kc == NULL) in set_private_key()
270 kc->item = itemRef; in set_private_key()
[all …]
/freebsd/contrib/bearssl/src/ssl/
H A Dprf.c36 br_hmac_key_context kc; in br_tls_phash() local
46 br_hmac_key_init(&kc, dig, secret, secret_len); in br_tls_phash()
47 br_hmac_init(&hc, &kc, 0); in br_tls_phash()
54 br_hmac_init(&hc, &kc, 0); in br_tls_phash()
69 br_hmac_init(&hc, &kc, 0); in br_tls_phash()
/freebsd/sys/kern/
H A Dkern_event.c689 kqtimer_sched_callout(struct kq_timer_cb_data *kc) in kqtimer_sched_callout() argument
691 callout_reset_sbt_on(&kc->c, kc->next, 0, filt_timerexpire, kc->kn, in kqtimer_sched_callout()
692 kc->cpuid, C_ABSOLUTE); in kqtimer_sched_callout()
698 struct kq_timer_cb_data *kc, *kc1; in kqtimer_proc_continue() local
707 TAILQ_FOREACH_SAFE(kc, &p->p_kqtim_stop, link, kc1) { in kqtimer_proc_continue()
708 TAILQ_REMOVE(&p->p_kqtim_stop, kc, link); in kqtimer_proc_continue()
709 kc->flags &= ~KQ_TIMER_CB_ENQUEUED; in kqtimer_proc_continue()
710 if (kc->next <= now) in kqtimer_proc_continue()
711 filt_timerexpire_l(kc->kn, true); in kqtimer_proc_continue()
713 kqtimer_sched_callout(kc); in kqtimer_proc_continue()
[all …]
H A Dkern_ktrace.c838 struct ktr_csw *kc; in ktrcsw() local
846 kc = &req->ktr_data.ktr_csw; in ktrcsw()
847 kc->out = out; in ktrcsw()
848 kc->user = user; in ktrcsw()
850 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg)); in ktrcsw()
852 bzero(kc->wmesg, sizeof(kc->wmesg)); in ktrcsw()
/freebsd/contrib/bearssl/inc/
H A Dbearssl_hmac.h84 void br_hmac_key_init(br_hmac_key_context *kc,
97 const br_hmac_key_context *kc) in br_hmac_key_get_digest() argument
99 return kc->dig_vtable; in br_hmac_key_get_digest()
137 const br_hmac_key_context *kc, size_t out_len);
/freebsd/sys/i386/i386/
H A Dcopyout.c133 vm_offset_t kc; member
149 *(char *)ca->kc = c; in copyinstr_slow0()
151 ca->kc++; in copyinstr_slow0()
167 for (plen = 0, uc = (vm_offset_t)udaddr, ca.kc = (vm_offset_t)kaddr; in copyinstr()
188 vm_offset_t kc; member
198 bcopy((void *)kva, (void *)ca->kc, ca->len); in copyin_slow0()
214 for (plen = 0, uc = (vm_offset_t)udaddr, ca.kc = (vm_offset_t)kaddr; in copyin()
215 plen < len; uc += ca.len, ca.kc += ca.len, plen += ca.len) { in copyin()
233 bcopy((void *)ca->kc, (void *)kva, ca->len); in copyout_slow0()
249 for (plen = 0, uc = (vm_offset_t)udaddr, ca.kc = (vm_offset_t)kaddr; in copyout()
[all …]
/freebsd/contrib/bearssl/src/kdf/
H A Dhkdf.c34 br_hmac_key_context kc; in br_hkdf_init() local
42 br_hmac_key_init(&kc, digest_vtable, salt, salt_len); in br_hkdf_init()
43 br_hmac_init(&hc->u.hmac_ctx, &kc, 0); in br_hkdf_init()
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/
H A Dsym.c111 kstat_ctl_t *kc; in fake_up_certain_popular_kernel_symbols() local
115 if ((kc = kstat_open()) == NULL) in fake_up_certain_popular_kernel_symbols()
118 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in fake_up_certain_popular_kernel_symbols()
133 (void) kstat_close(kc); in fake_up_certain_popular_kernel_symbols()
/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c74 u8 kc[8]; member
326 if (!pos || os_strlen(pos) != 16 || hexstr2bin(pos, g->kc, 8)) { in read_gsm_triplets()
617 u8 _rand[16], sres[4], kc[8]; in sim_req_auth() local
621 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in sim_req_auth()
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
640 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->kc, 8); in sim_req_auth()
684 u8 _rand[16], sres[4], kc[8]; in gsm_auth_req() local
688 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in gsm_auth_req()
690 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in gsm_auth_req()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_sim.c28 u8 kc[3][EAP_SIM_KC_LEN]; member
181 os_memset(data->kc, 0, 3 * EAP_SIM_KC_LEN); in eap_sim_clear_keys()
248 if (hexstr2bin(pos, data->kc[i], EAP_SIM_KC_LEN) < 0) in eap_sim_ext_sim_result()
251 data->kc[i], EAP_SIM_KC_LEN); in eap_sim_ext_sim_result()
299 data->sres[0], data->kc[0]) || in eap_sim_gsm_auth()
301 data->sres[1], data->kc[1]) || in eap_sim_gsm_auth()
304 data->sres[2], data->kc[2]))) { in eap_sim_gsm_auth()
338 data->sres[i], data->kc[i])) { in eap_sim_gsm_auth()
349 data->kc[i], EAP_SIM_KC_LEN); in eap_sim_gsm_auth()
368 os_memcpy(data->kc[i], in eap_sim_gsm_auth()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Dpcsc_funcs.h20 unsigned char *sres, unsigned char *kc);
H A Dpcsc_funcs.c1242 unsigned char *sres, unsigned char *kc) in scard_gsm_auth() argument
1296 os_memcpy(kc, buf + 4, 8); in scard_gsm_auth()
1310 os_memcpy(kc, buf + 6, 8); in scard_gsm_auth()
1314 wpa_hexdump(MSG_DEBUG, "SCARD: GSM auth - Kc", kc, 8); in scard_gsm_auth()
/freebsd/contrib/wpa/src/crypto/
H A Dmilenage.h18 u8 *kc);
H A Dmilenage.c235 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc) in gsm_milenage() argument
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8]; in gsm_milenage()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/
H A Dcheckpoint_capacity.ksh84 log_must zdb -e -p $FILEDISKDIR -kc $NESTEDPOOL
/freebsd/contrib/wpa/src/eap_server/
H A Deap_sim_db.h42 u8 *_rand, u8 *kc, u8 *sres,
H A Deap_sim_db.c44 u8 kc[EAP_SIM_MAX_CHAL][EAP_SIM_KC_LEN]; member
496 if (hexstr2bin(start, entry->u.sim.kc[num_chal], in eap_sim_db_sim_resp_auth()
927 u8 *_rand, u8 *kc, u8 *sres, in eap_sim_db_get_gsm_triplets() argument
971 os_memcpy(kc, entry->u.sim.kc, num_chal * EAP_SIM_KC_LEN); in eap_sim_db_get_gsm_triplets()
/freebsd/contrib/wpa/wpa_supplicant/
H A Deapol_test.c1100 unsigned char kc[8]; in scard_test() local
1142 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1146 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1208 unsigned char kc[8]; in scard_get_triplets() local
1242 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_get_triplets()
1250 printf("%02X", kc[j]); in scard_get_triplets()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_80211_macops.c681 struct ieee80211_key_conf *kc) in lkpi_80211_mo_set_key() argument
692 LKPI_80211_TRACE_MO("hw %p cmd %d vif %p sta %p kc %p", hw, cmd, vif, sta, kc); in lkpi_80211_mo_set_key()
693 error = lhw->ops->set_key(hw, cmd, vif, sta, kc); in lkpi_80211_mo_set_key()
H A Dlinux_80211.c246 lsta->kc, lsta->state, lsta->added_to_drv, lsta->in_mgd); in lkpi_lsta_dump()
722 struct ieee80211_key_conf *kc; in _lkpi_iv_key_set_delete() local
733 memset(&kc, 0, sizeof(kc)); in _lkpi_iv_key_set_delete()
734 kc = malloc(sizeof(*kc) + k->wk_keylen, M_LKPI80211, M_WAITOK | M_ZERO); in _lkpi_iv_key_set_delete()
735 kc->cipher = lkpi_net80211_to_l80211_cipher_suite( in _lkpi_iv_key_set_delete()
737 kc->keyidx = k->wk_keyix; in _lkpi_iv_key_set_delete()
739 kc->hw_key_idx = /* set by hw and needs to be passed for TX */; in _lkpi_iv_key_set_delete()
741 atomic64_set(&kc->tx_pn, k->wk_keytsc); in _lkpi_iv_key_set_delete()
742 kc->keylen = k->wk_keylen; in _lkpi_iv_key_set_delete()
743 memcpy(kc->key, k->wk_key, k->wk_keylen); in _lkpi_iv_key_set_delete()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DHost.cpp1664 kstat_ctl_t *kc; in getHostCPUName()
1668 kc = kstat_open(); in getHostCPUName()
1669 if (kc != NULL) { in getHostCPUName()
1670 ksp = kstat_lookup(kc, const_cast<char *>("cpu_info"), -1, NULL); in getHostCPUName()
1671 if (ksp != NULL && kstat_read(kc, ksp, NULL) != -1 && in getHostCPUName()
1678 kstat_close(kc); in getHostCPUName()

12