Home
last modified time | relevance | path

Searched refs:tk (Results 1 – 23 of 23) sorted by relevance

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/
Dtkip.c81 static void tkip_mixing_phase1(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase1() argument
95 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
96 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
97 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
98 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
99 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
105 static void tkip_mixing_phase2(const u8 *tk, struct tkip_ctx *ctx, in tkip_mixing_phase2() argument
119 ppk[0] += tkipS(ppk[5] ^ get_unaligned_le16(tk + 0)); in tkip_mixing_phase2()
120 ppk[1] += tkipS(ppk[0] ^ get_unaligned_le16(tk + 2)); in tkip_mixing_phase2()
121 ppk[2] += tkipS(ppk[1] ^ get_unaligned_le16(tk + 4)); in tkip_mixing_phase2()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/crypto/
Dwlancrypto_wrap.h15 u8* ccmp_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr,
17 u8* ccmp_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos,
19 u8* ccmp_encrypt_pv1(const u8 *tk, const u8 *a1, const u8 *a2, const u8 *a3,
23 u8* ccmp_256_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr,
25 u8* ccmp_256_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
28 u8* gcmp_decrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const struct ieee80211_hdr *hdr,
30 u8* gcmp_encrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const u8 *frame, size_t len,
Dccmp.c138 u8 * ccmp_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr, in ccmp_decrypt() argument
160 if (aes_ccm_ad(tk, 16, nonce, 8, data + 8, mlen, aad, aad_len, in ccmp_decrypt()
190 u8 * ccmp_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, in ccmp_encrypt() argument
233 if (aes_ccm_ae(tk, 16, nonce, 8, pdata, plen, aad, aad_len, in ccmp_encrypt()
247 u8 * ccmp_encrypt_pv1(const u8 *tk, const u8 *a1, const u8 *a2, const u8 *a3, in ccmp_encrypt_pv1() argument
275 if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len, in ccmp_encrypt_pv1()
289 u8 * ccmp_256_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr, in ccmp_256_decrypt() argument
311 if (aes_ccm_ad(tk, 32, nonce, 16, data + 8, mlen, aad, aad_len, in ccmp_256_decrypt()
330 u8 * ccmp_256_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen, in ccmp_256_encrypt() argument
373 if (aes_ccm_ae(tk, 32, nonce, 16, pdata, plen, aad, aad_len, in ccmp_256_encrypt()
Dsha256.c30 unsigned char tk[32]; in hmac_sha256_vector() local
44 if (sha256_vector(1, &key, &key_len, tk) < 0) in hmac_sha256_vector()
46 key = tk; in hmac_sha256_vector()
Dgcmp.c85 u8 * gcmp_decrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const struct ieee80211_hdr *hdr, in gcmp_decrypt() argument
107 if (aes_gcm_ad(tk, tk_len, nonce, sizeof(nonce), m, mlen, aad, aad_len, in gcmp_decrypt()
139 u8 * gcmp_encrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const u8 *frame, size_t len, in gcmp_encrypt() argument
182 if (aes_gcm_ae(tk, tk_len, nonce, sizeof(nonce), pdata, plen, in gcmp_encrypt()
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/src/
Dble_sm_sc.c233 proc->ri = 0x80 | !!(proc->tk[byte] & (1 << bit)); in ble_sm_sc_gen_ri()
425 ble_hs_log_flat_buf(proc->tk, 16); // 16:len in ble_sm_sc_random_rx()
648 memcpy_s(proc->tk, sizeof(proc->tk), proc->oob_data_remote->r, 16); // 16:size in ble_sm_sc_dhkey_check_exec()
650 memset_s(proc->tk, sizeof(proc->tk), 0, 16); // 16:size in ble_sm_sc_dhkey_check_exec()
662 ble_sm_peer_pair_rand(proc), proc->tk, iocap, in ble_sm_sc_dhkey_check_exec()
704 memcpy_s(proc->tk, sizeof(proc->tk), proc->oob_data_local->r, 16); // 16:size in ble_sm_dhkey_check_process()
706 memset_s(proc->tk, sizeof(proc->tk), 0, 16); // 16:size in ble_sm_dhkey_check_process()
716 memcpy_s(proc->tk, sizeof(proc->tk), proc->oob_data_local->r, 16); // 16:size in ble_sm_dhkey_check_process()
718 memset_s(proc->tk, sizeof(proc->tk), 0, 16); // 16:size in ble_sm_dhkey_check_process()
725 ble_hs_log_flat_buf(proc->tk, 16); // 16:len in ble_sm_dhkey_check_process()
[all …]
Dble_sm_lgcy.c120 rc = ble_sm_alg_c1(proc->tk, ble_sm_our_pair_rand(proc), proc->pair_req, in ble_sm_lgcy_confirm_exec()
151 rc = ble_sm_alg_s1(proc->tk, proc->rands, proc->randm, key); in ble_sm_gen_stk()
198 rc = ble_sm_alg_c1(proc->tk, ble_sm_peer_pair_rand(proc), proc->pair_req, in ble_sm_lgcy_random_rx()
Dble_sm.c2384 memcpy_s(proc->tk, sizeof(proc->tk), pkey->oob, 16); // 16:size in ble_sm_inject_io()
2399 memset_s(proc->tk, 16, 0, 16); // 16:size in ble_sm_inject_io()
2400 proc->tk[0] = (pkey->passkey >> 0) & 0xff; in ble_sm_inject_io()
2401 proc->tk[1] = (pkey->passkey >> 8) & 0xff; // 8:byte alignment in ble_sm_inject_io()
2402 … proc->tk[2] = (pkey->passkey >> 16) & 0xff; // 16:byte alignment, 2:array element in ble_sm_inject_io()
2403 … proc->tk[3] = (pkey->passkey >> 24) & 0xff; // 24:byte alignment, 3:array element in ble_sm_inject_io()
Dble_sm_priv.h257 uint8_t tk[16]; member
/device/soc/esp/esp32/components/esp_wifi/include/
Desp_wifi_crypto_types.h342 typedef uint8_t * (*esp_ccmp_decrypt_t)(const uint8_t *tk, const uint8_t *ieee80211_hdr,
358 typedef uint8_t * (*esp_ccmp_encrypt_t)(const uint8_t *tk, uint8_t *frame, size_t len, size_t hdrle…
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/
Dsmp_api.c335 smp_convert_string_to_tk(p_cb->tk, passkey); in SMP_PasskeyReply()
443 memcpy(p_cb->tk, p_data, len); in SMP_OobDataReply()
446 key.p_data = p_cb->tk; in SMP_OobDataReply()
Dsmp_keys.c192 UINT8 *tt = p_cb->tk; in smp_use_static_passkey()
196 memset(p_cb->tk, 0, BT_OCTET16_LEN); in smp_use_static_passkey()
200 key.p_data = p_cb->tk; in smp_use_static_passkey()
250 UINT8 *tt = p_cb->tk; in smp_proc_passkey()
265 memset(p_cb->tk, 0, BT_OCTET16_LEN); in smp_proc_passkey()
269 key.p_data = p_cb->tk; in smp_proc_passkey()
640 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p1, BT_OCTET16_LEN, &output)) { in smp_calculate_comfirm()
677 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p2, BT_OCTET16_LEN, &output)) { in smp_calculate_comfirm_cont()
955 encrypted = SMP_Encrypt( p_cb->tk, BT_OCTET16_LEN, ptext, BT_OCTET16_LEN, output); in smp_calculate_legacy_short_term_key()
Dsmp_utils.c834 void smp_convert_string_to_tk(BT_OCTET16 tk, UINT32 passkey) in smp_convert_string_to_tk() argument
836 UINT8 *p = tk; in smp_convert_string_to_tk()
842 key.p_data = tk; in smp_convert_string_to_tk()
Dsmp_act.c1062 STREAM_TO_ARRAY (p_cb->tk, p, BT_OCTET16_LEN); /* reuse TK for IRK */ in smp_proc_id_info()
1080 memcpy(pid_key.irk, p_cb->tk, BT_OCTET16_LEN); in smp_proc_id_addr()
1360 key.p_data = p_cb->tk; in smp_decide_association_model()
1363 memset(p_cb->tk, 0, BT_OCTET16_LEN); in smp_decide_association_model()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/sdk/
Dble_sec.h193 sec_tk_t tk; /**< TK value, see @ref sec_tk_t. */ member
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/include/
Dsmp_int.h322 BT_OCTET16 tk; member
479 extern void smp_convert_string_to_tk(BT_OCTET16 tk, UINT32 passkey);
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/
Drtw_security.c531 #define TK16(N) Mk16(tk[2*(N)+1], tk[2*(N)])
635 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
682 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
1637 prwskey = &ptdls_sta->tpk.tk[0]; in rtw_aes_encrypt()
1743 prwskey = &ptdls_sta->tpk.tk[0]; in rtw_aes_encrypt()
Drtw_cmd.c1483 _rtw_memcpy(&psetstakey_para->key, sta->tpk.tk, key_len); in rtw_setstakey_cmd()
/device/soc/chipsea/cst85/liteos_m/sdk/modules/btdm/ble/ble_stack/hl/api/
Dhal_gapc_task.h901 struct gap_sec_key tk; member
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/ble_inc/
Dsonata_gap_api.h1547 struct sonata_gap_sec_key tk; member
2208 uint16_t sonata_ble_gap_send_bond_cfm_for_tk_exchange(uint8_t conidx, uint8_t accept, uint8_t *tk);
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/include/
Dsta_info.h236 u8 tk[16]; /* TPK-TK; only CCMP will be used */ member
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/
Dioctl_cfg80211.c2151 _rtw_memcpy(ptdls_sta->tpk.tk, params->key, params->key_len); in cfg80211_rtw_add_key()
/device/board/isoftstone/zhiyuan/kernel/driver/ramfs/
Drootfs_arm64.cpio.gz