Lines Matching refs:Q

302     mbedtls_ecp_point_init( &key->Q );  in mbedtls_ecp_keypair_init()
357 mbedtls_ecp_point_free( &key->Q ); in mbedtls_ecp_keypair_free()
363 int mbedtls_ecp_copy( mbedtls_ecp_point *P, const mbedtls_ecp_point *Q ) in mbedtls_ecp_copy() argument
367 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->X, &Q->X ) ); in mbedtls_ecp_copy()
368 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Y, &Q->Y ) ); in mbedtls_ecp_copy()
369 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &P->Z, &Q->Z ) ); in mbedtls_ecp_copy()
410 const mbedtls_ecp_point *Q ) in mbedtls_ecp_point_cmp() argument
412 if( mbedtls_mpi_cmp_mpi( &P->X, &Q->X ) == 0 && in mbedtls_ecp_point_cmp()
413 mbedtls_mpi_cmp_mpi( &P->Y, &Q->Y ) == 0 && in mbedtls_ecp_point_cmp()
414 mbedtls_mpi_cmp_mpi( &P->Z, &Q->Z ) == 0 ) in mbedtls_ecp_point_cmp()
871 mbedtls_ecp_point *Q, in ecp_safe_invert_jac() argument
881 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &mQY, &grp->P, &Q->Y ) ); in ecp_safe_invert_jac()
882 nonzero = mbedtls_mpi_cmp_int( &Q->Y, 0 ) != 0; in ecp_safe_invert_jac()
883 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( &Q->Y, &mQY, inv & nonzero ) ); in ecp_safe_invert_jac()
997 const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q ) in ecp_add_mixed() argument
1010 return( mbedtls_ecp_copy( R, Q ) ); in ecp_add_mixed()
1012 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 0 ) == 0 ) in ecp_add_mixed()
1018 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 1 ) != 0 ) in ecp_add_mixed()
1026 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T1, &T1, &Q->X ) ); MOD_MUL( T1 ); in ecp_add_mixed()
1027 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T2, &T2, &Q->Y ) ); MOD_MUL( T2 ); in ecp_add_mixed()
1509 const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q, in ecp_double_add_mxz() argument
1524 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &C, &Q->X, &Q->Z ) ); MOD_ADD( C ); in ecp_double_add_mxz()
1525 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &D, &Q->X, &Q->Z ) ); MOD_SUB( D ); in ecp_double_add_mxz()
1722 const mbedtls_mpi *n, const mbedtls_ecp_point *Q ) in mbedtls_ecp_muladd() argument
1733 MBEDTLS_MPI_CHK( mbedtls_ecp_mul_shortcuts( grp, R, n, Q ) ); in mbedtls_ecp_muladd()
1817 mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecp_gen_keypair_base() argument
1891 return( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair_base()
1898 mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecp_gen_keypair() argument
1902 return( mbedtls_ecp_gen_keypair_base( grp, &grp->G, d, Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_keypair()
1916 return( mbedtls_ecp_gen_keypair( &key->grp, &key->d, &key->Q, f_rng, p_rng ) ); in mbedtls_ecp_gen_key()
1925 mbedtls_ecp_point Q; in mbedtls_ecp_check_pub_priv() local
1930 mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
1931 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
1932 mbedtls_mpi_cmp_mpi( &pub->Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
1937 mbedtls_ecp_point_init( &Q ); in mbedtls_ecp_check_pub_priv()
1944 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &Q, &prv->d, &prv->grp.G, NULL, NULL ) ); in mbedtls_ecp_check_pub_priv()
1946 if( mbedtls_mpi_cmp_mpi( &Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
1947 mbedtls_mpi_cmp_mpi( &Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
1948 mbedtls_mpi_cmp_mpi( &Q.Z, &prv->Q.Z ) ) in mbedtls_ecp_check_pub_priv()
1955 mbedtls_ecp_point_free( &Q ); in mbedtls_ecp_check_pub_priv()