Lines Matching refs:n2
1008 BIGNUM *n0, *n1, *n2, *n3, *n4, *n5, *n6;
1032 n2 = BN_CTX_get(ctx);
1044 /* n1, n2 */
1048 if (!BN_copy(n2, &a->Y)) goto end;
1050 /* n2 = Y_a */
1059 if (!field_mul(group, n2, &a->Y, n0, ctx)) goto end;
1060 /* n2 = Y_a * Z_b^3 */
1084 if (!BN_mod_sub_quick(n6, n2, n4, p)) goto end;
1086 /* n6 = n2 - n4 */
1110 if (!BN_mod_add_quick(n2, n2, n4, p)) goto end;
1112 /* 'n8' = n2 + n4 */
1147 if (!field_mul(group, n1, n2, n5, ctx)) goto end;
1172 BIGNUM *n0, *n1, *n2, *n3;
1196 n2 = BN_CTX_get(ctx);
1218 if (!BN_mod_sub_quick(n2, &a->X, n1, p)) goto err;
1219 if (!field_mul(group, n1, n0, n2, ctx)) goto err;
1250 /* n2 */
1252 if (!field_mul(group, n2, &a->X, n3, ctx)) goto err;
1253 if (!BN_mod_lshift_quick(n2, n2, 2, p)) goto err;
1254 /* n2 = 4 * X_a * Y_a^2 */
1257 if (!BN_mod_lshift1_quick(n0, n2, p)) goto err;
1260 /* X_r = n1^2 - 2 * n2 */
1268 if (!BN_mod_sub_quick(n0, n2, &r->X, p)) goto err;
1271 /* Y_r = n1 * (n2 - X_r) - n3 */