Lines Matching refs:Mx
1377 static int dpp_derive_k1(const u8 *Mx, size_t Mx_len, u8 *k1, in dpp_derive_k1() argument
1388 if (dpp_hmac(hash_len, salt, hash_len, Mx, Mx_len, prk) < 0) in dpp_derive_k1()
1458 addr[num_elem] = auth->Mx; in dpp_derive_ke()
2163 EVP_PKEY_derive(ctx, auth->Mx, &secret_len) != 1) { in dpp_auth_init()
2174 auth->Mx, auth->secret_len); in dpp_auth_init()
2177 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_init()
2390 os_memset(auth->Mx, 0, sizeof(auth->Mx)); in dpp_auth_success()
3073 EVP_PKEY_derive(ctx, auth->Mx, &secret_len) != 1) { in dpp_auth_req_rx()
3085 auth->Mx, auth->secret_len); in dpp_auth_req_rx()
3088 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_req_rx()
6813 BIGNUM *Mx = NULL, *My = NULL; in dpp_pkex_build_exchange_req() local
6857 Mx = BN_new(); in dpp_pkex_build_exchange_req()
6859 if (!M || !Mx || !My || in dpp_pkex_build_exchange_req()
6861 EC_POINT_get_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1) in dpp_pkex_build_exchange_req()
6917 if (dpp_bn2bin_pad(Mx, wpabuf_put(msg, curve->prime_len), in dpp_pkex_build_exchange_req()
6919 dpp_bn2bin_pad(Mx, pkex->Mx, curve->prime_len) < 0 || in dpp_pkex_build_exchange_req()
6929 BN_clear_free(Mx); in dpp_pkex_build_exchange_req()
7077 const u8 *Mx, size_t Mx_len, in dpp_pkex_derive_z() argument
7106 os_memcpy(pos, Mx, Mx_len); in dpp_pkex_derive_z()
7177 BIGNUM *Mx = NULL, *My = NULL; in dpp_pkex_rx_exchange_req() local
7257 Mx = BN_bin2bn(attr_key, attr_key_len / 2, NULL); in dpp_pkex_rx_exchange_req()
7259 if (!X || !M || !Mx || !My || in dpp_pkex_rx_exchange_req()
7260 EC_POINT_set_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1 || in dpp_pkex_rx_exchange_req()
7292 os_memcpy(pkex->Mx, attr_key, attr_key_len / 2); in dpp_pkex_rx_exchange_req()
7370 pkex->Mx, curve->prime_len, in dpp_pkex_rx_exchange_req()
7384 BN_free(Mx); in dpp_pkex_rx_exchange_req()
7694 pkex->Mx, curve->prime_len, in dpp_pkex_rx_exchange_resp()