Lines Matching refs:n2
649 BIGNUM *n0, *n1, *n2, *n3, *n4, *n5, *n6;
673 n2 = BN_CTX_get(ctx);
685 /* n1, n2 */
689 if (!BN_copy(n2, &a->Y)) goto end;
691 /* n2 = Y_a */
700 if (!field_mul(group, n2, &a->Y, n0, ctx)) goto end;
701 /* n2 = Y_a * Z_b^3 */
725 if (!BN_mod_sub_quick(n6, n2, n4, p)) goto end;
727 /* n6 = n2 - n4 */
751 if (!BN_mod_add_quick(n2, n2, n4, p)) goto end;
753 /* 'n8' = n2 + n4 */
788 if (!field_mul(group, n1, n2, n5, ctx)) goto end;
813 BIGNUM *n0, *n1, *n2, *n3;
837 n2 = BN_CTX_get(ctx);
859 if (!BN_mod_sub_quick(n2, &a->X, n1, p)) goto err;
860 if (!field_mul(group, n1, n0, n2, ctx)) goto err;
891 /* n2 */
893 if (!field_mul(group, n2, &a->X, n3, ctx)) goto err;
894 if (!BN_mod_lshift_quick(n2, n2, 2, p)) goto err;
895 /* n2 = 4 * X_a * Y_a^2 */
898 if (!BN_mod_lshift1_quick(n0, n2, p)) goto err;
901 /* X_r = n1^2 - 2 * n2 */
909 if (!BN_mod_sub_quick(n0, n2, &r->X, p)) goto err;
912 /* Y_r = n1 * (n2 - X_r) - n3 */