Lines Matching refs:t1

425    fp_int t1, t2;  in tfm_ecc_projective_dbl_point()  local
436 fp_init(&t1); in tfm_ecc_projective_dbl_point()
455 fp_sqr(R->z, &t1); in tfm_ecc_projective_dbl_point()
456 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_dbl_point()
468 fp_sub(R->x, &t1, &t2); in tfm_ecc_projective_dbl_point()
473 fp_add(&t1, R->x, &t1); in tfm_ecc_projective_dbl_point()
474 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
475 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
478 fp_mul(&t1, &t2, &t2); in tfm_ecc_projective_dbl_point()
481 fp_add(&t2, &t2, &t1); in tfm_ecc_projective_dbl_point()
482 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
483 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
486 fp_add(&t1, &t2, &t1); in tfm_ecc_projective_dbl_point()
487 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
488 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
493 fp_sqr(&t1, &t2); in tfm_ecc_projective_dbl_point()
496 fp_mul(&t2, ma, &t1); in tfm_ecc_projective_dbl_point()
497 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_dbl_point()
502 fp_add(&t1, &t2, &t1); in tfm_ecc_projective_dbl_point()
503 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
504 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
507 fp_add(&t1, &t2, &t1); in tfm_ecc_projective_dbl_point()
508 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
509 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
512 fp_add(&t1, &t2, &t1); in tfm_ecc_projective_dbl_point()
513 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_dbl_point()
514 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_dbl_point()
539 fp_sqr(&t1, R->x); in tfm_ecc_projective_dbl_point()
558 fp_mul(R->y, &t1, R->y); in tfm_ecc_projective_dbl_point()
580 fp_int t1, t2, x, y, z; in tfm_ecc_projective_add_point() local
592 fp_init(&t1); in tfm_ecc_projective_add_point()
617 fp_sub(modulus, Q->y, &t1); in tfm_ecc_projective_add_point()
620 (fp_cmp(P->y, Q->y) == FP_EQ || fp_cmp(P->y, &t1) == FP_EQ)) { in tfm_ecc_projective_add_point()
631 fp_sqr(Q->z, &t1); in tfm_ecc_projective_add_point()
632 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
634 fp_mul(&t1, &x, &x); in tfm_ecc_projective_add_point()
637 fp_mul(Q->z, &t1, &t1); in tfm_ecc_projective_add_point()
638 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
640 fp_mul(&t1, &y, &y); in tfm_ecc_projective_add_point()
645 fp_sqr(&z, &t1); in tfm_ecc_projective_add_point()
646 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
648 fp_mul(Q->x, &t1, &t2); in tfm_ecc_projective_add_point()
651 fp_mul(&z, &t1, &t1); in tfm_ecc_projective_add_point()
652 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
654 fp_mul(Q->y, &t1, &t1); in tfm_ecc_projective_add_point()
655 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
658 fp_sub(&y, &t1, &y); in tfm_ecc_projective_add_point()
663 fp_add(&t1, &t1, &t1); in tfm_ecc_projective_add_point()
664 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_add_point()
665 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_add_point()
668 fp_add(&t1, &y, &t1); in tfm_ecc_projective_add_point()
669 if (fp_cmp(&t1, modulus) != FP_LT) { in tfm_ecc_projective_add_point()
670 fp_sub(&t1, modulus, &t1); in tfm_ecc_projective_add_point()
700 fp_mul(&t1, &x, &t1); in tfm_ecc_projective_add_point()
701 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
709 fp_mul(&t1, &x, &t1); in tfm_ecc_projective_add_point()
710 fp_montgomery_reduce(&t1, modulus, mp); in tfm_ecc_projective_add_point()
735 fp_sub(&t2, &t1, &y); in tfm_ecc_projective_add_point()