Lines Matching refs:n0
649 BIGNUM *n0, *n1, *n2, *n3, *n4, *n5, *n6;
671 n0 = BN_CTX_get(ctx);
695 if (!field_sqr(group, n0, &b->Z, ctx)) goto end;
696 if (!field_mul(group, n1, &a->X, n0, ctx)) goto end;
699 if (!field_mul(group, n0, n0, &b->Z, ctx)) goto end;
700 if (!field_mul(group, n2, &a->Y, n0, ctx)) goto end;
714 if (!field_sqr(group, n0, &a->Z, ctx)) goto end;
715 if (!field_mul(group, n3, &b->X, n0, ctx)) goto end;
718 if (!field_mul(group, n0, n0, &a->Z, ctx)) goto end;
719 if (!field_mul(group, n4, &b->Y, n0, ctx)) goto end;
763 { if (!BN_copy(n0, &b->Z)) goto end; }
765 { if (!BN_copy(n0, &a->Z)) goto end; }
767 { if (!field_mul(group, n0, &a->Z, &b->Z, ctx)) goto end; }
768 if (!field_mul(group, &r->Z, n0, n5, ctx)) goto end;
774 if (!field_sqr(group, n0, n6, ctx)) goto end;
777 if (!BN_mod_sub_quick(&r->X, n0, n3, p)) goto end;
781 if (!BN_mod_lshift1_quick(n0, &r->X, p)) goto end;
782 if (!BN_mod_sub_quick(n0, n3, n0, p)) goto end;
786 if (!field_mul(group, n0, n0, n6, ctx)) goto end;
789 if (!BN_mod_sub_quick(n0, n0, n1, p)) goto end;
790 if (BN_is_odd(n0))
791 if (!BN_add(n0, n0, p)) goto end;
792 /* now 0 <= n0 < 2*p, and n0 is even */
793 if (!BN_rshift1(&r->Y, n0)) goto end;
813 BIGNUM *n0, *n1, *n2, *n3;
835 n0 = BN_CTX_get(ctx);
849 if (!field_sqr(group, n0, &a->X, ctx)) goto err;
850 if (!BN_mod_lshift1_quick(n1, n0, p)) goto err;
851 if (!BN_mod_add_quick(n0, n0, n1, p)) goto err;
852 if (!BN_mod_add_quick(n1, n0, &group->a, p)) goto err;
858 if (!BN_mod_add_quick(n0, &a->X, n1, p)) goto err;
860 if (!field_mul(group, n1, n0, n2, ctx)) goto err;
861 if (!BN_mod_lshift1_quick(n0, n1, p)) goto err;
862 if (!BN_mod_add_quick(n1, n0, n1, p)) goto err;
868 if (!field_sqr(group, n0, &a->X, ctx)) goto err;
869 if (!BN_mod_lshift1_quick(n1, n0, p)) goto err;
870 if (!BN_mod_add_quick(n0, n0, n1, p)) goto err;
874 if (!BN_mod_add_quick(n1, n1, n0, p)) goto err;
881 if (!BN_copy(n0, &a->Y)) goto err;
885 if (!field_mul(group, n0, &a->Y, &a->Z, ctx)) goto err;
887 if (!BN_mod_lshift1_quick(&r->Z, n0, p)) goto err;
898 if (!BN_mod_lshift1_quick(n0, n2, p)) goto err;
900 if (!BN_mod_sub_quick(&r->X, &r->X, n0, p)) goto err;
904 if (!field_sqr(group, n0, n3, ctx)) goto err;
905 if (!BN_mod_lshift_quick(n3, n0, 3, p)) goto err;
909 if (!BN_mod_sub_quick(n0, n2, &r->X, p)) goto err;
910 if (!field_mul(group, n0, n1, n0, ctx)) goto err;
911 if (!BN_mod_sub_quick(&r->Y, n0, n3, p)) goto err;