Lines Matching refs:sum
2051 struct crypto_bignum *lx, *sum, *q; in dpp_auth_derive_l_responder() local
2057 sum = crypto_bignum_init(); in dpp_auth_derive_l_responder()
2060 if (!sum || !q || !lx) in dpp_auth_derive_l_responder()
2072 (crypto_bignum_addmod(sum, bR_bn, pR_bn, q) != 0)) in dpp_auth_derive_l_responder()
2076 if (!l || (crypto_ec_point_mul((struct crypto_ec *)group, BI_point, sum, l) != 0) || in dpp_auth_derive_l_responder()
2090 crypto_bignum_deinit(sum, 0); in dpp_auth_derive_l_responder()
2099 struct crypto_ec_point *l = NULL, *sum = NULL; in dpp_auth_derive_l_initiator() local
2117 sum = crypto_ec_point_init((struct crypto_ec *)group); in dpp_auth_derive_l_initiator()
2119 if (!sum || !l || in dpp_auth_derive_l_initiator()
2120 crypto_ec_point_add((struct crypto_ec *)group, BR_point, PR_point, sum) != 0 || in dpp_auth_derive_l_initiator()
2121 crypto_ec_point_mul((struct crypto_ec *)group, sum, bI_bn, l) != 0 || in dpp_auth_derive_l_initiator()
2135 crypto_ec_point_deinit(sum, 1); in dpp_auth_derive_l_initiator()