Home
last modified time | relevance | path

Searched refs:ck (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/lib/libc/stdio/
H A Dfmemopen.c54 struct fmemopen_cookie *ck; in fmemopen() local
84 ck = malloc(sizeof(struct fmemopen_cookie)); in fmemopen()
85 if (ck == NULL) { in fmemopen()
89 ck->off = 0; in fmemopen()
90 ck->size = size; in fmemopen()
93 ck->own = ((ck->buf = buf) == NULL); in fmemopen()
94 if (ck->own) { in fmemopen()
95 ck->buf = malloc(size); in fmemopen()
96 if (ck->buf == NULL) { in fmemopen()
97 free(ck); in fmemopen()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dmilenage.c89 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar) in milenage_f2345() argument
121 if (ck) { in milenage_f2345()
126 if (aes_128_encrypt_block(k, tmp1, ck)) in milenage_f2345()
129 ck[i] ^= opc[i]; in milenage_f2345()
175 u8 *ck, u8 *res, size_t *res_len) in milenage_generate() argument
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) { in milenage_generate()
237 u8 res[8], ck[16], ik[16]; in gsm_milenage() local
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL)) in gsm_milenage()
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8]; in gsm_milenage()
271 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, in milenage_check() argument
[all …]
H A Dmilenage.h14 u8 *ck, u8 *res, size_t *res_len);
20 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
25 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
/freebsd/contrib/unbound/util/data/
H A Dpacked_rrset.c336 struct ub_packed_rrset_key* ck = regional_alloc(region, in packed_rrset_copy_region() local
343 if(!ck) in packed_rrset_copy_region()
345 ck->id = key->id; in packed_rrset_copy_region()
346 memset(&ck->entry, 0, sizeof(ck->entry)); in packed_rrset_copy_region()
347 ck->entry.hash = key->entry.hash; in packed_rrset_copy_region()
348 ck->entry.key = ck; in packed_rrset_copy_region()
349 ck->rk = key->rk; in packed_rrset_copy_region()
350 ck->rk.dname = regional_alloc_init(region, key->rk.dname, in packed_rrset_copy_region()
352 if(!ck->rk.dname) in packed_rrset_copy_region()
358 ck->entry.data = d; in packed_rrset_copy_region()
[all …]
/freebsd/contrib/telnet/libtelnet/
H A Dsra.c55 DesData ck; variable
178 common_key(ska,pkb,&ik,&ck); in sra_is()
187 pk_decode(xuser,user,&ck); in sra_is()
199 pk_decode(xpass,pass,&ck); in sra_is()
206 skey.data = ck; in sra_is()
263 common_key(ska,pkb,&ik,&ck); in sra_reply()
283 pk_encode(user,xuser,&ck); in sra_reply()
304 pk_encode(pass,xpass,&ck); in sra_reply()
324 skey.data = ck; in sra_reply()
H A Dkerberos.c467 int ck = 0; in kerberos4_cksum() local
484 ck ^= (int)*d++ << 24; in kerberos4_cksum()
487 ck ^= (int)*d++ << 16; in kerberos4_cksum()
490 ck ^= (int)*d++ << 8; in kerberos4_cksum()
493 ck ^= (int)*d++; in kerberos4_cksum()
496 return(ck); in kerberos4_cksum()
H A Dpk.c58 extractideakey(MINT *ck, IdeaData *ideakey) in extractideakey() argument
69 mp_madd(ck, z, a); in extractideakey()
87 extractdeskey(MINT *ck, DesData *deskey) in extractdeskey() argument
98 mp_madd(ck, z, a); in extractdeskey()
/freebsd/contrib/unbound/services/cache/
H A Ddns.c96 struct ub_packed_rrset_key* ck; in store_rrsets() local
101 ck = NULL; in store_rrsets()
102 else ck = packed_rrset_copy_region( in store_rrsets()
105 if(ck) { in store_rrsets()
107 qrep->rrsets[i] = ck; in store_rrsets()
734 struct ub_packed_rrset_key* ck; in synth_dname_msg() local
782 ck = (struct ub_packed_rrset_key*)regional_alloc(region, in synth_dname_msg()
784 if(!ck) in synth_dname_msg()
786 memset(&ck->entry, 0, sizeof(ck->entry)); in synth_dname_msg()
787 msg->rep->rrsets[1] = ck; in synth_dname_msg()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_mx4200.c669 u_char ck; in mx4200_receive() local
741 ck = mx4200_cksum(&pp->a_lastcode[1], pp->lencode - 4); in mx4200_receive()
742 if (char2hex[ck >> 4] != cp[1] || char2hex[ck & 0xf] != cp[2]) { in mx4200_receive()
1118 register u_char ck; in mx4200_cksum() local
1120 for (ck = 0; n-- > 0; cp++) in mx4200_cksum()
1121 ck ^= *cp; in mx4200_cksum()
1122 return (ck); in mx4200_cksum()
1603 u_char ck; local
1622 ck
[all...]
/freebsd/contrib/one-true-awk/testdir/
H A Dt.time8 ck %= l
9 totck += ck
/freebsd/contrib/unbound/respip/
H A Drespip.c490 struct ub_packed_rrset_key* ck = regional_alloc(region, in respip_copy_rrset() local
499 if(!ck) in respip_copy_rrset()
501 ck->id = key->id; in respip_copy_rrset()
502 memset(&ck->entry, 0, sizeof(ck->entry)); in respip_copy_rrset()
503 ck->entry.hash = key->entry.hash; in respip_copy_rrset()
504 ck->entry.key = ck; in respip_copy_rrset()
505 ck->rk = key->rk; in respip_copy_rrset()
507 ck->rk.dname = regional_alloc_init(region, key->rk.dname, in respip_copy_rrset()
509 if(!ck->rk.dname) in respip_copy_rrset()
511 ck->rk.dname_len = key->rk.dname_len; in respip_copy_rrset()
[all …]
/freebsd/crypto/openssl/crypto/aria/
H A Daria.c543 const uint32_t *ck; in ossl_aria_set_encrypt_key() local
557 ck = &Key_RC[(bits - 128) / 64][0]; in ossl_aria_set_encrypt_key()
564 reg0 = w0[0] ^ ck[0]; in ossl_aria_set_encrypt_key()
565 reg1 = w0[1] ^ ck[1]; in ossl_aria_set_encrypt_key()
566 reg2 = w0[2] ^ ck[2]; in ossl_aria_set_encrypt_key()
567 reg3 = w0[3] ^ ck[3]; in ossl_aria_set_encrypt_key()
596 reg0 ^= ck[4]; in ossl_aria_set_encrypt_key()
597 reg1 ^= ck[5]; in ossl_aria_set_encrypt_key()
598 reg2 ^= ck[6]; in ossl_aria_set_encrypt_key()
599 reg3 ^= ck[7]; in ossl_aria_set_encrypt_key()
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_pax_common.c130 u8 *mk, u8 *ck, u8 *ick, u8 *mid) in eap_pax_initial_key_derivation() argument
136 e, 2 * EAP_PAX_RAND_LEN, EAP_PAX_CK_LEN, ck) || in eap_pax_initial_key_derivation()
145 wpa_hexdump_key(MSG_MSGDUMP, "EAP-PAX: CK", ck, EAP_PAX_CK_LEN); in eap_pax_initial_key_derivation()
H A Deap_sim_common.h79 const u8 *ik, const u8 *ck, u8 *mk);
93 const u8 *ik, const u8 *ck, u8 *k_encr,
104 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak,
110 const u8 *ik, const u8 *ck, in eap_aka_prime_derive_keys() argument
H A Deap_sim_common.c57 const u8 *ik, const u8 *ck, u8 *mk) in eap_aka_derive_mk() argument
66 addr[2] = ck; in eap_aka_derive_mk()
72 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA: CK", ck, EAP_AKA_CK_LEN); in eap_aka_derive_mk()
276 const u8 *ik, const u8 *ck, u8 *k_encr, in eap_aka_prime_derive_keys() argument
294 os_memcpy(key + EAP_AKA_IK_LEN, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_keys()
424 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak, in eap_aka_prime_derive_ck_ik_prime() argument
458 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
465 os_memcpy(key, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
487 os_memcpy(ck, hash, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
489 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK'", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
/freebsd/sys/dev/wg/
H A Dwg_noise.c159 static int noise_mix_ss(uint8_t ck[NOISE_HASH_LEN], uint8_t [NOISE_SYMMETRIC_KEY_LEN],
1235 const uint8_t ck[NOISE_HASH_LEN]) in noise_kdf()
1241 hmac(sec, x, ck, BLAKE2S_HASH_SIZE, x_len, NOISE_HASH_LEN); in noise_kdf()
1274 noise_mix_dh(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN], in noise_mix_dh()
1282 noise_kdf(ck, key, NULL, dh, in noise_mix_dh()
1283 NOISE_HASH_LEN, NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, ck); in noise_mix_dh()
1289 noise_mix_ss(uint8_t ck[NOISE_HASH_LEN], uint8_t key[NOISE_SYMMETRIC_KEY_LEN], in noise_mix_ss()
1295 noise_kdf(ck, key, NULL, ss, in noise_mix_ss()
1296 NOISE_HASH_LEN, NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, ck); in noise_mix_ss()
1313 noise_mix_psk(uint8_t ck[NOISE_HASH_LEN], uint8_t hash[NOISE_HASH_LEN], in noise_mix_psk()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dmountu.sh54 ck() { function
93 ck UFS
117 ck NFS
142 ck MSDOS
165 ck TMPFS
/freebsd/sys/i386/i386/
H A Dbios.c82 u_int8_t ck, *cv; in bios32_init() local
94 for (cv = (u_int8_t *)sdh, ck = 0, i = 0; i < (sdh->len * 16); i++) { in bios32_init()
95 ck += cv[i]; in bios32_init()
98 if ((ck == 0) && (BIOS_START <= sdh->entry ) && in bios32_init()
130 for (cv = (u_int8_t *)pt, ck = 0, i = 0; i < pt->len; i++) { in bios32_init()
131 ck += cv[i]; in bios32_init()
134 if (ck == 0) { in bios32_init()
/freebsd/contrib/tzdata/
H A DMakefile135 TIME_T_ALTERNATIVES_HEAD = int_least64_t.ck
136 TIME_T_ALTERNATIVES_TAIL = int_least32_t.ck uint_least32_t.ck \
137 uint_least64_t.ck
594 CHECK_WEB_PAGES=theory.ck tz-art.ck tz-how-to.ck tz-link.ck
/freebsd/sys/contrib/device-tree/src/arm64/qcom/
H A Dqcs404-evb-4000.dts83 tx-ck-pins {
89 rx-ck-pins {
/freebsd/sys/contrib/device-tree/src/arm64/st/
H A Dstm32mp251.dtsi38 ck_flexgen_08: ck-flexgen-08 {
44 ck_flexgen_51: ck-flexgen-51 {
50 ck_icn_ls_mcu: ck-icn-ls-mcu {
/freebsd/sys/modules/ipfw_nat64/
H A DMakefile10 CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_pax.c39 u8 ck[EAP_PAX_CK_LEN]; member
181 data->mk, data->ck, data->ick, in eap_pax_process_std_1()
207 eap_pax_mac(req->mac_id, data->ck, EAP_PAX_CK_LEN, in eap_pax_process_std_1()
278 if (eap_pax_mac(data->mac_id, data->ck, EAP_PAX_CK_LEN, in eap_pax_process_std_3()
/freebsd/sys/i386/pci/
H A Dpci_pir.c132 uint8_t ck, *cv; in pci_pir_open() local
150 for (cv = (u_int8_t *)pt, ck = 0, i = 0; in pci_pir_open()
152 ck += cv[i]; in pci_pir_open()
153 if (ck != 0) in pci_pir_open()
/freebsd/usr.sbin/keyserv/
H A Dsetkey.c244 extractdeskey(MINT *ck, des_block *deskey) in extractdeskey() argument
254 _mp_move(ck, a); in extractdeskey()
256 mp_move(ck, a); in extractdeskey()

1234