Lines Matching refs:Nx
1405 static int dpp_derive_k2(const u8 *Nx, size_t Nx_len, u8 *k2, in dpp_derive_k2() argument
1416 res = dpp_hmac(hash_len, salt, hash_len, Nx, Nx_len, prk); in dpp_derive_k2()
1461 addr[num_elem] = auth->Nx; in dpp_derive_ke()
2392 os_memset(auth->Nx, 0, sizeof(auth->Nx)); in dpp_auth_success()
2764 EVP_PKEY_derive(ctx, auth->Nx, &secret_len) != 1) { in dpp_auth_build_resp_ok()
2774 auth->Nx, auth->secret_len); in dpp_auth_build_resp_ok()
2777 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_build_resp_ok()
3692 EVP_PKEY_derive(ctx, auth->Nx, &secret_len) != 1) { in dpp_auth_resp_rx()
3705 auth->Nx, auth->secret_len); in dpp_auth_resp_rx()
3708 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_resp_rx()
6282 static int dpp_derive_pmk(const u8 *Nx, size_t Nx_len, u8 *pmk, in dpp_derive_pmk() argument
6293 if (dpp_hmac(hash_len, salt, hash_len, Nx, Nx_len, prk) < 0) in dpp_derive_pmk()
6372 u8 Nx[DPP_MAX_SHARED_SECRET_LEN]; in dpp_peer_intro() local
6490 EVP_PKEY_derive(ctx, Nx, &Nx_len) != 1) { in dpp_peer_intro()
6498 Nx, Nx_len); in dpp_peer_intro()
6501 if (dpp_derive_pmk(Nx, Nx_len, intro->pmk, curve->hash_len) < 0) { in dpp_peer_intro()
6517 os_memset(Nx, 0, sizeof(Nx)); in dpp_peer_intro()
6990 const BIGNUM *Nx, const BIGNUM *Ny) in dpp_pkex_build_exchange_resp() argument
7054 if (dpp_bn2bin_pad(Nx, wpabuf_put(msg, curve->prime_len), in dpp_pkex_build_exchange_resp()
7056 dpp_bn2bin_pad(Nx, pkex->Nx, curve->prime_len) < 0 || in dpp_pkex_build_exchange_resp()
7078 const u8 *Nx, size_t Nx_len, in dpp_pkex_derive_z() argument
7108 os_memcpy(pos, Nx, Nx_len); in dpp_pkex_derive_z()
7180 BIGNUM *Nx = NULL, *Ny = NULL; in dpp_pkex_rx_exchange_req() local
7337 Nx = BN_new(); in dpp_pkex_rx_exchange_req()
7339 if (!N || !Nx || !Ny || in dpp_pkex_rx_exchange_req()
7341 EC_POINT_get_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1) in dpp_pkex_rx_exchange_req()
7346 Nx, Ny); in dpp_pkex_rx_exchange_req()
7371 pkex->Nx, curve->prime_len, pkex->code, in dpp_pkex_rx_exchange_req()
7386 BN_free(Nx); in dpp_pkex_rx_exchange_req()
7526 BIGNUM *Nx = NULL, *Ny = NULL; in dpp_pkex_rx_exchange_resp() local
7610 Nx = BN_bin2bn(attr_key, attr_key_len / 2, NULL); in dpp_pkex_rx_exchange_resp()
7612 if (!Y || !N || !Nx || !Ny || in dpp_pkex_rx_exchange_resp()
7613 EC_POINT_set_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1 || in dpp_pkex_rx_exchange_resp()
7713 BN_free(Nx); in dpp_pkex_rx_exchange_resp()