Home
last modified time | relevance | path

Searched refs:k2 (Results 1 – 6 of 6) 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
197 smp_xor_128(&cmac_cb.text[0], k2); in cmac_prepare_last_block()
211 UINT8 k1[BT_OCTET16_LEN], k2[BT_OCTET16_LEN]; in cmac_subkey_cont() local
227 leftshift_onebit(k1, k2); in cmac_subkey_cont()
228 smp_xor_128(k2, const_Rb); in cmac_subkey_cont()
231 leftshift_onebit(k1, k2); in cmac_subkey_cont()
235 print128(k2, (const UINT8 *)"K2"); in cmac_subkey_cont()
237 cmac_prepare_last_block (k1, k2); in cmac_subkey_cont()
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
Daes-siv.c126 const u8 *k1, *k2; in aes_siv_encrypt() local
137 k2 = key + key_len; in aes_siv_encrypt()
158 return aes_ctr_encrypt(k2, key_len, v, crypt_pw, pwlen); in aes_siv_encrypt()
169 const u8 *k1, *k2; in aes_siv_decrypt() local
182 k2 = key + key_len; in aes_siv_decrypt()
197 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/src/
Decc_dsa.c106 uECC_word_t *k2[2] = {tmp, s}; in uECC_sign_with_k() local
120 EccPoint_mult(p, curve->G, k2[!carry], 0, num_n_bits + 1, curve); in uECC_sign_with_k()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_dsa.c106 uECC_word_t *k2[2] = {tmp, s}; in uECC_sign_with_k() local
120 EccPoint_mult(p, curve->G, k2[!carry], 0, num_n_bits + 1, curve); in uECC_sign_with_k()
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Ddpp.c860 static int dpp_derive_k2(const u8 *Nx, size_t Nx_len, u8 *k2, in dpp_derive_k2() argument
878 res = dpp_hkdf_expand(hash_len, prk, hash_len, info, k2, hash_len); in dpp_derive_k2()
884 k2, hash_len); in dpp_derive_k2()
1879 os_memset(auth->k2, 0, sizeof(auth->k2)); in dpp_auth_success()
2216 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_build_resp_ok()
2315 auth->k2); in dpp_auth_build_resp_ok()
2816 if (aes_siv_encrypt(auth->k2, auth->curve->hash_len, in dpp_auth_build_conf()
3092 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_resp_rx()
3108 if (aes_siv_decrypt(auth->k2, auth->curve->hash_len, in dpp_auth_resp_rx()
3290 if (aes_siv_decrypt(auth->k2, auth->curve->hash_len, in dpp_auth_conf_rx_failure()
Ddpp.h269 u8 k2[DPP_MAX_HASH_LEN]; member