Lines Matching refs:Q

556     mbedtls_ecp_point_init( &key->Q );  in mbedtls_ecp_keypair_init()
623 mbedtls_ecp_point_free( &key->Q ); in mbedtls_ecp_keypair_free()
629 int mbedtls_ecp_copy( mbedtls_ecp_point *P, const mbedtls_ecp_point *Q ) in mbedtls_ecp_copy() argument
633 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_copy()
635 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->X, &Q->X ) ); in mbedtls_ecp_copy()
636 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Y, &Q->Y ) ); in mbedtls_ecp_copy()
637 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Z, &Q->Z ) ); in mbedtls_ecp_copy()
684 const mbedtls_ecp_point *Q ) in mbedtls_ecp_point_cmp() argument
687 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_point_cmp()
689 if( mbedtls_mpi_cmp_mpi( &P->X, &Q->X ) == 0 && in mbedtls_ecp_point_cmp()
690 mbedtls_mpi_cmp_mpi( &P->Y, &Q->Y ) == 0 && in mbedtls_ecp_point_cmp()
691 mbedtls_mpi_cmp_mpi( &P->Z, &Q->Z ) == 0 ) in mbedtls_ecp_point_cmp()
1317 mbedtls_ecp_point *Q, in ecp_safe_invert_jac() argument
1327 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &mQY, &grp->P, &Q->Y ) ); in ecp_safe_invert_jac()
1328 nonzero = mbedtls_mpi_cmp_int( &Q->Y, 0 ) != 0; in ecp_safe_invert_jac()
1329 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( &Q->Y, &mQY, inv & nonzero ) ); in ecp_safe_invert_jac()
1452 const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q ) in ecp_add_mixed() argument
1460 return( mbedtls_internal_ecp_add_mixed( grp, R, P, Q ) ); in ecp_add_mixed()
1473 return( mbedtls_ecp_copy( R, Q ) ); in ecp_add_mixed()
1475 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 0 ) == 0 ) in ecp_add_mixed()
1481 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 1 ) != 0 ) in ecp_add_mixed()
1489 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T1, &T1, &Q->X ) ); in ecp_add_mixed()
1490 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T2, &T2, &Q->Y ) ); in ecp_add_mixed()
2325 const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q, in ecp_double_add_mxz() argument
2330 return( mbedtls_internal_ecp_double_add_mxz( grp, R, S, P, Q, d ) ); in ecp_double_add_mxz()
2348 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mod( grp, &C, &Q->X, &Q->Z ) ); in ecp_double_add_mxz()
2349 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mod( grp, &D, &Q->X, &Q->Z ) ); in ecp_double_add_mxz()
2640 const mbedtls_mpi *n, const mbedtls_ecp_point *Q, in mbedtls_ecp_muladd_restartable() argument
2655 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_muladd_restartable()
2688 MBEDTLS_MPI_CHK( mbedtls_ecp_mul_shortcuts( grp, pR, n, Q, rs_ctx ) ); in mbedtls_ecp_muladd_restartable()
2736 const mbedtls_mpi *n, const mbedtls_ecp_point *Q ) in mbedtls_ecp_muladd() argument
2743 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_muladd()
2744 return( mbedtls_ecp_muladd_restartable( grp, R, m, P, n, Q, NULL ) ); in mbedtls_ecp_muladd()
3005 mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecp_gen_keypair_base() argument
3013 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_gen_keypair_base()
3017 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair_base()
3027 mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecp_gen_keypair() argument
3033 ECP_VALIDATE_RET( Q != NULL ); in mbedtls_ecp_gen_keypair()
3036 return( mbedtls_ecp_gen_keypair_base( grp, &grp->G, d, Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair()
3052 return( mbedtls_ecp_gen_keypair( &key->grp, &key->d, &key->Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_key()
3189 mbedtls_ecp_point Q; in mbedtls_ecp_check_pub_priv() local
3196 mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
3197 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
3198 mbedtls_mpi_cmp_mpi( &pub->Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
3203 mbedtls_ecp_point_init( &Q ); in mbedtls_ecp_check_pub_priv()
3210 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &Q, &prv->d, &prv->grp.G, f_rng, p_rng ) ); in mbedtls_ecp_check_pub_priv()
3212 if( mbedtls_mpi_cmp_mpi( &Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
3213 mbedtls_mpi_cmp_mpi( &Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
3214 mbedtls_mpi_cmp_mpi( &Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
3221 mbedtls_ecp_point_free( &Q ); in mbedtls_ecp_check_pub_priv()