/freebsd/lib/libc/stdio/ |
H A D | fmemopen.c | 54 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 D | milenage.c | 89 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 D | milenage.h | 14 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 D | packed_rrset.c | 336 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 D | sra.c | 55 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 D | kerberos.c | 467 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 D | pk.c | 58 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 D | dns.c | 96 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 D | refclock_mx4200.c | 669 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 D | t.time | 8 ck %= l 9 totck += ck
|
/freebsd/contrib/unbound/respip/ |
H A D | respip.c | 490 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 D | aria.c | 543 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 D | eap_pax_common.c | 130 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 D | eap_sim_common.h | 79 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 D | eap_sim_common.c | 57 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 D | wg_noise.c | 159 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 D | mountu.sh | 54 ck() { function 93 ck UFS 117 ck NFS 142 ck MSDOS 165 ck TMPFS
|
/freebsd/sys/i386/i386/ |
H A D | bios.c | 82 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 D | Makefile | 135 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 D | qcs404-evb-4000.dts | 83 tx-ck-pins { 89 rx-ck-pins {
|
/freebsd/sys/contrib/device-tree/src/arm64/st/ |
H A D | stm32mp251.dtsi | 38 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 D | Makefile | 10 CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_pax.c | 39 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 D | pci_pir.c | 132 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 D | setkey.c | 244 extractdeskey(MINT *ck, des_block *deskey) in extractdeskey() argument 254 _mp_move(ck, a); in extractdeskey() 256 mp_move(ck, a); in extractdeskey()
|