Home
last modified time | relevance | path

Searched refs:k1 (Results 1 – 8 of 8) sorted by relevance

/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/smp/
Dsmp_cmac.c180 static void cmac_prepare_last_block (BT_OCTET16 k1, BT_OCTET16 k2) in cmac_prepare_last_block() argument
193 smp_xor_128(&cmac_cb.text[0], k1); in cmac_prepare_last_block()
211 UINT8 k1[BT_OCTET16_LEN], k2[BT_OCTET16_LEN]; in cmac_subkey_cont() local
219 leftshift_onebit(pp, k1); in cmac_subkey_cont()
220 smp_xor_128(k1, const_Rb); in cmac_subkey_cont()
222 leftshift_onebit(pp, k1); in cmac_subkey_cont()
225 if ( (k1[BT_OCTET16_LEN - 1] & 0x80) != 0 ) { in cmac_subkey_cont()
227 leftshift_onebit(k1, k2); in cmac_subkey_cont()
231 leftshift_onebit(k1, k2); in cmac_subkey_cont()
234 print128(k1, (const UINT8 *)"K1"); in cmac_subkey_cont()
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
Daes-siv.c126 const u8 *k1, *k2; in aes_siv_encrypt() local
136 k1 = key; in aes_siv_encrypt()
146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt()
169 const u8 *k1, *k2; in aes_siv_decrypt() local
181 k1 = key; in aes_siv_decrypt()
201 ret = aes_s2v(k1, key_len, num_elem + 1, _addr, _len, check); in aes_siv_decrypt()
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/include/tinycrypt/
Decc.h289 uECC_word_t *k1, uECC_Curve curve);
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/
Decc.h289 uECC_word_t *k1, uECC_Curve curve);
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Ddpp.c832 static int dpp_derive_k1(const u8 *Mx, size_t Mx_len, u8 *k1, in dpp_derive_k1() argument
849 res = dpp_hkdf_expand(hash_len, prk, hash_len, info, k1, hash_len); in dpp_derive_k1()
855 k1, hash_len); in dpp_derive_k1()
1109 if (aes_siv_encrypt(auth->k1, auth->curve->hash_len, clear, siv_len, in dpp_auth_build_req()
1600 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_init()
1878 os_memset(auth->k1, 0, sizeof(auth->k1)); in dpp_auth_success()
2383 NULL, i_nonce, NULL, 0, auth->k1); in dpp_auth_build_resp_status()
2505 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_req_rx()
2521 if (aes_siv_decrypt(auth->k1, auth->curve->hash_len, in dpp_auth_req_rx()
2885 if (aes_siv_decrypt(auth->k1, auth->curve->hash_len, in dpp_auth_resp_rx_status()
Ddpp.h268 u8 k1[DPP_MAX_HASH_LEN]; member
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/src/
Decc.c775 uECC_word_t *k1, uECC_Curve curve) in regularize_k() argument
786 uECC_vli_add(k1, k0, curve->n, num_n_words); in regularize_k()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc.c774 uECC_word_t *k1, uECC_Curve curve) in regularize_k() argument
785 uECC_vli_add(k1, k0, curve->n, num_n_words); in regularize_k()