Lines Matching refs:n2
659 BIGNUM *n0, *n1, *n2, *n3, *n4, *n5, *n6;
682 n2 = BN_CTX_get(ctx);
696 /* n1, n2 */
700 if (!BN_copy(n2, &a->Y))
703 /* n2 = Y_a */
713 if (!field_mul(group, n2, &a->Y, n0, ctx))
715 /* n2 = Y_a * Z_b^3 */
743 if (!BN_mod_sub_quick(n6, n2, n4, p))
746 /* n6 = n2 - n4 */
767 if (!BN_mod_add_quick(n2, n2, n4, p))
770 /* 'n8' = n2 + n4 */
816 if (!field_mul(group, n1, n2, n5, ctx))
846 BIGNUM *n0, *n1, *n2, *n3;
868 n2 = BN_CTX_get(ctx);
895 if (!BN_mod_sub_quick(n2, &a->X, n1, p))
897 if (!field_mul(group, n1, n0, n2, ctx))
938 /* n2 */
941 if (!field_mul(group, n2, &a->X, n3, ctx))
943 if (!BN_mod_lshift_quick(n2, n2, 2, p))
945 /* n2 = 4 * X_a * Y_a^2 */
948 if (!BN_mod_lshift1_quick(n0, n2, p))
954 /* X_r = n1^2 - 2 * n2 */
964 if (!BN_mod_sub_quick(n0, n2, &r->X, p))
970 /* Y_r = n1 * (n2 - X_r) - n3 */