Lines Matching refs:bnctx

49 	BN_CTX *bnctx = NULL;  in dpp_pkex_build_exchange_req()  local
61 bnctx = BN_CTX_new(); in dpp_pkex_build_exchange_req()
62 if (!bnctx) in dpp_pkex_build_exchange_req()
65 pkex->identifier, bnctx, &group); in dpp_pkex_build_exchange_req()
100 EC_POINT_add(group, M, X_point, Qi, bnctx) != 1 || in dpp_pkex_build_exchange_req()
101 EC_POINT_get_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1) in dpp_pkex_build_exchange_req()
170 BN_CTX_free(bnctx); in dpp_pkex_build_exchange_req()
356 BN_CTX *bnctx = NULL; in dpp_pkex_rx_exchange_req() local
427 bnctx = BN_CTX_new(); in dpp_pkex_rx_exchange_req()
428 if (!bnctx) in dpp_pkex_rx_exchange_req()
430 Qi = dpp_pkex_derive_Qi(curve, peer_mac, code, identifier, bnctx, in dpp_pkex_rx_exchange_req()
441 EC_POINT_set_affine_coordinates_GFp(group, M, Mx, My, bnctx) != 1 || in dpp_pkex_rx_exchange_req()
443 !EC_POINT_is_on_curve(group, M, bnctx) || in dpp_pkex_rx_exchange_req()
444 EC_POINT_invert(group, Qi, bnctx) != 1 || in dpp_pkex_rx_exchange_req()
445 EC_POINT_add(group, X, M, Qi, bnctx) != 1 || in dpp_pkex_rx_exchange_req()
447 !EC_POINT_is_on_curve(group, X, bnctx)) { in dpp_pkex_rx_exchange_req()
486 Qr = dpp_pkex_derive_Qr(curve, own_mac, code, identifier, bnctx, NULL); in dpp_pkex_rx_exchange_req()
521 EC_POINT_add(group, N, Y_point, Qr, bnctx) != 1 || in dpp_pkex_rx_exchange_req()
522 EC_POINT_get_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1) in dpp_pkex_rx_exchange_req()
551 BN_CTX_free(bnctx); in dpp_pkex_rx_exchange_req()
692 BN_CTX *bnctx = NULL; in dpp_pkex_rx_exchange_resp() local
768 bnctx = BN_CTX_new(); in dpp_pkex_rx_exchange_resp()
769 if (!bnctx) in dpp_pkex_rx_exchange_resp()
772 pkex->identifier, bnctx, &group); in dpp_pkex_rx_exchange_resp()
782 EC_POINT_set_affine_coordinates_GFp(group, N, Nx, Ny, bnctx) != 1 || in dpp_pkex_rx_exchange_resp()
784 !EC_POINT_is_on_curve(group, N, bnctx) || in dpp_pkex_rx_exchange_resp()
785 EC_POINT_invert(group, Qr, bnctx) != 1 || in dpp_pkex_rx_exchange_resp()
786 EC_POINT_add(group, Y, N, Qr, bnctx) != 1 || in dpp_pkex_rx_exchange_resp()
788 !EC_POINT_is_on_curve(group, Y, bnctx)) { in dpp_pkex_rx_exchange_resp()
864 BN_CTX_free(bnctx); in dpp_pkex_rx_exchange_resp()