Lines Matching refs:bnctx

1590 	BN_CTX *bnctx;  in dpp_auth_derive_l_responder()  local
1597 bnctx = BN_CTX_new(); in dpp_auth_derive_l_responder()
1601 if (!bnctx || !sum || !q || !lx) in dpp_auth_derive_l_responder()
1619 if (EC_GROUP_get_order(group, q, bnctx) != 1 || in dpp_auth_derive_l_responder()
1620 BN_mod_add(sum, bR_bn, pR_bn, q, bnctx) != 1) in dpp_auth_derive_l_responder()
1624 EC_POINT_mul(group, l, NULL, BI_point, sum, bnctx) != 1 || in dpp_auth_derive_l_responder()
1626 bnctx) != 1) { in dpp_auth_derive_l_responder()
1643 BN_CTX_free(bnctx); in dpp_auth_derive_l_responder()
1654 BN_CTX *bnctx; in dpp_auth_derive_l_initiator() local
1661 bnctx = BN_CTX_new(); in dpp_auth_derive_l_initiator()
1663 if (!bnctx || !lx) in dpp_auth_derive_l_initiator()
1682 EC_POINT_add(group, sum, BR_point, PR_point, bnctx) != 1 || in dpp_auth_derive_l_initiator()
1683 EC_POINT_mul(group, l, NULL, sum, bI_bn, bnctx) != 1 || in dpp_auth_derive_l_initiator()
1685 bnctx) != 1) { in dpp_auth_derive_l_initiator()
1701 BN_CTX_free(bnctx); in dpp_auth_derive_l_initiator()
2032 const char *identifier, BN_CTX *bnctx, in dpp_pkex_derive_Qi() argument
2091 EC_POINT_mul(group2, Qi, NULL, Pi_point, hash_bn, bnctx) != 1) in dpp_pkex_derive_Qi()
2115 const char *identifier, BN_CTX *bnctx, in dpp_pkex_derive_Qr() argument
2174 EC_POINT_mul(group2, Qr, NULL, Pr_point, hash_bn, bnctx) != 1) in dpp_pkex_derive_Qr()
2260 BN_CTX *bnctx = NULL; in dpp_reconfig_derive_ke_responder() local
2311 bnctx = BN_CTX_new(); in dpp_reconfig_derive_ke_responder()
2316 if (!cR || !bnctx || !sum || !mx || !q || !m) in dpp_reconfig_derive_ke_responder()
2324 if (EC_GROUP_get_order(group, q, bnctx) != 1 || in dpp_reconfig_derive_ke_responder()
2325 BN_mod_add(sum, cR_bn, pR_bn, q, bnctx) != 1 || in dpp_reconfig_derive_ke_responder()
2326 EC_POINT_mul(group, m, NULL, CI_point, sum, bnctx) != 1 || in dpp_reconfig_derive_ke_responder()
2328 bnctx) != 1) { in dpp_reconfig_derive_ke_responder()
2370 BN_CTX_free(bnctx); in dpp_reconfig_derive_ke_responder()
2379 BN_CTX *bnctx = NULL; in dpp_reconfig_derive_ke_initiator() local
2419 bnctx = BN_CTX_new(); in dpp_reconfig_derive_ke_initiator()
2427 if (!bnctx || !sum || !m || !mx || in dpp_reconfig_derive_ke_initiator()
2428 EC_POINT_add(group, sum, CR_point, PR_point, bnctx) != 1 || in dpp_reconfig_derive_ke_initiator()
2429 EC_POINT_mul(group, m, NULL, sum, cI_bn, bnctx) != 1 || in dpp_reconfig_derive_ke_initiator()
2431 bnctx) != 1 || in dpp_reconfig_derive_ke_initiator()
2464 BN_CTX_free(bnctx); in dpp_reconfig_derive_ke_initiator()