Home
last modified time | relevance | path

Searched refs:key_data (Results 1 – 25 of 67) sorted by relevance

123

/OK3568_Linux_fs/u-boot/common/
H A Dattestation_key.c396 atap_result read_key_data(uint8_t **key_buf, uint8_t *key_data, in read_key_data() argument
407 memcpy(key_data, &key.data_length, sizeof(uint32_t)); in read_key_data()
408 memcpy(key_data + 4, key.data, key.data_length); in read_key_data()
416 memcpy(key_data + *key_data_length, in read_key_data()
420 memcpy(key_data + *key_data_length, in read_key_data()
423 memcpy(key_data + *key_data_length, certchain.entries[i].data, in read_key_data()
443 uint8_t *key_data; in write_attestation_key_to_secure_storage() local
448 key_data = malloc(ATTESTATION_DATA_OFFSET); in write_attestation_key_to_secure_storage()
465 read_key_data(&key_buf, key_data, &key_data_length); in write_attestation_key_to_secure_storage()
466 TEEC_Result ret_rsa=write_key(KM_ALGORITHM_RSA, key_name, key_data, key_data_length); in write_attestation_key_to_secure_storage()
[all …]
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/
H A Dscript_parser.c446 char *key_data = NULL, *key_addr; in __parse_script() local
466 key_data = malloc(512 * 1024); in __parse_script()
467 if (key_data == NULL) { in __parse_script()
472 memset(key_data, 0, 512 * 1024); in __parse_script()
473 key_addr = key_data; in __parse_script()
621 key_addr = key_data; in __parse_script()
667 memcpy(pos, key_data, 10 * sizeof(int) * subkey_idx); in __parse_script()
679 if (key_data) in __parse_script()
680 free(key_data); in __parse_script()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/hdmirx/
H A Drk_hdmirx_hdcp.c53 struct hdcp_key_data_t *key_data; in hdcp_load_keys_cb() local
63 key_data = (struct hdcp_key_data_t *)hdcp_vendor_data; in hdcp_load_keys_cb()
64 if ((key_data->signature != HDCP_SIG_MAGIC) in hdcp_load_keys_cb()
65 || !(key_data->flags & HDCP_FLG_AES)) in hdcp_load_keys_cb()
322 struct hdcp_key_data_t *key_data; in test_key1x_store() local
344 key_data = (struct hdcp_key_data_t *)hdcp_vendor_data; in test_key1x_store()
345 if ((key_data->signature != HDCP_SIG_MAGIC) in test_key1x_store()
346 || !(key_data->flags & HDCP_FLG_AES)) in test_key1x_store()
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt7601u/
H A Dmac.c505 mt76_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) in mt76_mac_get_key_info() argument
507 memset(key_data, 0, 32); in mt76_mac_get_key_info()
514 memcpy(key_data, key->key, key->keylen); in mt76_mac_get_key_info()
534 u8 key_data[32]; in mt76_mac_wcid_set_key() local
538 cipher = mt76_mac_get_key_info(key, key_data); in mt76_mac_wcid_set_key()
544 mt7601u_wr_copy(dev, MT_WCID_KEY(idx), key_data, sizeof(key_data)); in mt76_mac_wcid_set_key()
575 u8 key_data[32]; in mt76_mac_shared_key_setup() local
578 cipher = mt76_mac_get_key_info(key, key_data); in mt76_mac_shared_key_setup()
585 key_data, sizeof(key_data)); in mt76_mac_shared_key_setup()
/OK3568_Linux_fs/kernel/drivers/block/
H A Dcryptoloop.c81 lo->key_data = tfm; in cryptoloop_init()
100 struct crypto_sync_skcipher *tfm = lo->key_data; in cryptoloop_transfer()
166 struct crypto_sync_skcipher *tfm = lo->key_data; in cryptoloop_release()
169 lo->key_data = NULL; in cryptoloop_release()
H A Dloop.h51 void *key_data; member
/OK3568_Linux_fs/kernel/arch/m68k/atari/
H A Datakeyb.c153 scancode = acia.key_data; in atari_keyboard_interrupt()
172 scancode = acia.key_data; /* get it or reset the ACIA, I'll get it! */ in atari_keyboard_interrupt()
328 acia.key_data = *str++; in ikbd_write()
519 (void)acia.key_data; in atari_keyb_init()
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dlib.c1054 struct wowlan_key_data key_data = { in iwlagn_suspend() local
1064 key_data.rsc_tsc = kzalloc(sizeof(*key_data.rsc_tsc), GFP_KERNEL); in iwlagn_suspend()
1065 if (!key_data.rsc_tsc) in iwlagn_suspend()
1154 &key_data); in iwlagn_suspend()
1156 if (key_data.error) { in iwlagn_suspend()
1161 if (key_data.use_rsc_tsc) { in iwlagn_suspend()
1164 .data[0] = key_data.rsc_tsc, in iwlagn_suspend()
1166 .len[0] = sizeof(*key_data.rsc_tsc), in iwlagn_suspend()
1174 if (key_data.use_tkip) { in iwlagn_suspend()
1213 kfree(key_data.rsc_tsc); in iwlagn_suspend()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/
H A DkeyMgmtAp_rom.c250 buf_p = (UINT8 *)(tx_eapol_ptr->keyMsg.key_data + RsnIE_len); in prepareKDE()
309 tx_eapol_ptr->keyMsg.key_data, NULL, cipherText); in Encrypt_keyData()
312 memcpy(util_fns, (void *)tx_eapol_ptr->keyMsg.key_data, in Encrypt_keyData()
321 16, (unsigned char *)&tx_eapol_ptr->keyMsg.key_data, in Encrypt_keyData()
374 memcpy(util_fns, (void *)pTxEAPOL->keyMsg.key_data, in KeyData_CopyWPAWP2()
404 buf_p = (UINT8 *)pTxEAPOL->keyMsg.key_data; in KeyData_AddGTK()
H A DkeyMgmtSta_rom.c679 (UINT8 *)pKeyMsg->key_data, in KeyMgmtSta_ApplyKEK()
680 NULL, (UINT8 *)pKeyMsg->key_data); in KeyMgmtSta_ApplyKEK()
699 (UINT8 *)pKeyMsg->key_data, in KeyMgmtSta_ApplyKEK()
1034 parseKeyDataGTK(priv, pKeyMsg->key_data, in ProcessRxEAPOL_PwkMsg3()
1070 parseKeyDataGTK(priv, pKeyMsg->key_data, in ProcessRxEAPOL_GrpMsg1()
1093 (util_fns, pKeyMgmtInfoSta->GRKey.Key, pKeyMsg->key_data, in ProcessRxEAPOL_GrpMsg1()
1098 pKeyMsg->key_data, pKeyMsg->key_material_len); in ProcessRxEAPOL_GrpMsg1()
/OK3568_Linux_fs/kernel/include/linux/
H A Dlibnvdimm.h193 const struct nvdimm_key_data *key_data);
195 const struct nvdimm_key_data *key_data);
197 const struct nvdimm_key_data *key_data,
200 const struct nvdimm_key_data *key_data);
/OK3568_Linux_fs/kernel/drivers/net/netdevsim/
H A Dipsec.c89 unsigned char *key_data; in nsim_ipsec_parse_proto_keys() local
104 key_data = &xs->aead->alg_key[0]; in nsim_ipsec_parse_proto_keys()
116 *mysalt = ((u32 *)key_data)[4]; in nsim_ipsec_parse_proto_keys()
123 memcpy(mykey, key_data, 16); in nsim_ipsec_parse_proto_keys()
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_mac.c33 mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) in mt76x02_mac_get_key_info() argument
35 memset(key_data, 0, 32); in mt76x02_mac_get_key_info()
42 memcpy(key_data, key->key, key->keylen); in mt76x02_mac_get_key_info()
62 u8 key_data[32]; in mt76x02_mac_shared_key_setup() local
65 cipher = mt76x02_mac_get_key_info(key, key_data); in mt76x02_mac_shared_key_setup()
74 mt76_wr_copy(dev, MT_SKEY(vif_idx, key_idx), key_data, in mt76x02_mac_shared_key_setup()
75 sizeof(key_data)); in mt76x02_mac_shared_key_setup()
85 u8 key_data[32]; in mt76x02_mac_wcid_sync_pn() local
89 cipher = mt76x02_mac_get_key_info(key, key_data); in mt76x02_mac_wcid_sync_pn()
110 u8 key_data[32]; in mt76x02_mac_wcid_set_key() local
[all …]
/OK3568_Linux_fs/kernel/drivers/accessibility/speakup/
H A Dkeyhelp.c17 static u_short key_offsets[MAXFUNCS], key_data[MAXKEYS]; variable
94 p_key = key_data + offset + counters[ch1]; in build_key_data()
201 p_keys = key_data + key_offsets[func]; in spk_handle_help()
/OK3568_Linux_fs/kernel/drivers/staging/wfx/
H A Dkey.c36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair()
38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair()
46 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_group()
49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group()
/OK3568_Linux_fs/kernel/drivers/input/keyboard/
H A Dipaq-micro-keys.c59 keys->micro->key_data = keys; in micro_key_start()
67 keys->micro->key_data = NULL; in micro_key_stop()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dbcmwpa.c465 uint8 *key_data; in wpa_decr_key_data() local
485 key_data = EAPOL_WPA_KEY_HDR_DATA_PTR(body, rsn_info->kck_mic_len); in wpa_decr_key_data()
486 rc4(key_data, len, rc4key); in wpa_decr_key_data()
498 key_data = EAPOL_WPA_KEY_HDR_DATA_PTR(body, rsn_info->kck_mic_len); in wpa_decr_key_data()
499 if (aes_unwrap(rsn_info->kek_len, ekey, len, key_data, key_data)) { in wpa_decr_key_data()
653 uint8 *key_data; in wpa_encr_key_data() local
676 key_data = EAPOL_WPA_KEY_HDR_DATA_PTR(body, rsn_info->kck_mic_len); in wpa_encr_key_data()
677 rc4(key_data, len, rc4key); in wpa_encr_key_data()
688 key_data = EAPOL_WPA_KEY_HDR_DATA_PTR(body, rsn_info->kck_mic_len); in wpa_encr_key_data()
692 key_data[len] = WPA2_KEY_DATA_PAD; in wpa_encr_key_data()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dd3.c769 struct wowlan_key_data key_data = { in iwl_mvm_wowlan_config_key_params() local
781 key_data.rsc_tsc = kzalloc(sizeof(*key_data.rsc_tsc), GFP_KERNEL); in iwl_mvm_wowlan_config_key_params()
782 if (!key_data.rsc_tsc) in iwl_mvm_wowlan_config_key_params()
798 &key_data); in iwl_mvm_wowlan_config_key_params()
800 if (key_data.error) { in iwl_mvm_wowlan_config_key_params()
805 if (key_data.use_rsc_tsc) { in iwl_mvm_wowlan_config_key_params()
812 size = sizeof(*key_data.rsc_tsc); in iwl_mvm_wowlan_config_key_params()
813 key_data.rsc_tsc->sta_id = in iwl_mvm_wowlan_config_key_params()
817 size = sizeof(key_data.rsc_tsc->params); in iwl_mvm_wowlan_config_key_params()
827 key_data.rsc_tsc); in iwl_mvm_wowlan_config_key_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/nfit/
H A Dintel.c196 const struct nvdimm_key_data *key_data) in intel_security_unlock() argument
216 memcpy(nd_cmd.cmd.passphrase, key_data->data, in intel_security_unlock()
237 const struct nvdimm_key_data *key_data) in intel_security_disable() argument
257 memcpy(nd_cmd.cmd.passphrase, key_data->data, in intel_security_disable()
/OK3568_Linux_fs/kernel/security/keys/
H A Dkeyctl.c830 char *key_data = NULL; in keyctl_read_key() local
893 key_data = kvmalloc(key_data_len, GFP_KERNEL); in keyctl_read_key()
894 if (!key_data) { in keyctl_read_key()
900 ret = __keyctl_read_key(key, key_data, key_data_len); in keyctl_read_key()
916 if (unlikely(key_data)) in keyctl_read_key()
917 kvfree_sensitive(key_data, key_data_len); in keyctl_read_key()
922 if (copy_to_user(buffer, key_data, ret)) in keyctl_read_key()
926 kvfree_sensitive(key_data, key_data_len); in keyctl_read_key()
/OK3568_Linux_fs/u-boot/include/
H A Dattestation_key.h29 atap_result read_key_data(uint8_t **key_buf, uint8_t *key_data,
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.c215 unsigned char *key_data; in ixgbevf_ipsec_parse_proto_keys() local
230 key_data = &xs->aead->alg_key[0]; in ixgbevf_ipsec_parse_proto_keys()
245 *mysalt = ((u32 *)key_data)[4]; in ixgbevf_ipsec_parse_proto_keys()
252 memcpy(mykey, key_data, 16); in ixgbevf_ipsec_parse_proto_keys()
/OK3568_Linux_fs/kernel/net/mac80211/
H A Dkey.c533 const u8 *key_data, in ieee80211_key_alloc() argument
592 key_data, key_len, IEEE80211_CCMP_MIC_LEN); in ieee80211_key_alloc()
610 key_data, key_len, IEEE80211_CCMP_256_MIC_LEN); in ieee80211_key_alloc()
633 ieee80211_aes_cmac_key_setup(key_data, key_len); in ieee80211_key_alloc()
652 ieee80211_aes_gmac_key_setup(key_data, key_len); in ieee80211_key_alloc()
670 key->u.gcmp.tfm = ieee80211_aes_gcm_key_setup_encrypt(key_data, in ieee80211_key_alloc()
694 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c832 mt7603_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) in mt7603_mac_get_key_info() argument
834 memset(key_data, 0, 32); in mt7603_mac_get_key_info()
841 memcpy(key_data, key->key, key->keylen); in mt7603_mac_get_key_info()
850 memcpy(key_data + 16, key->key + 24, 8); in mt7603_mac_get_key_info()
851 memcpy(key_data + 24, key->key + 16, 8); in mt7603_mac_get_key_info()
865 u8 key_data[32]; in mt7603_wtbl_set_key() local
866 int key_len = sizeof(key_data); in mt7603_wtbl_set_key()
868 cipher = mt7603_mac_get_key_info(key, key_data); in mt7603_wtbl_set_key()
877 mt76_wr_copy(dev, addr, key_data, key_len); in mt7603_wtbl_set_key()
/OK3568_Linux_fs/kernel/drivers/nvdimm/
H A Dsecurity.c27 static void *key_data(struct key *key) in key_data() function
87 return key_data(*key); in nvdimm_get_key_payload()
135 return key_data(*key); in nvdimm_get_user_key_payload()

123