Lines Matching refs:ref
387 mbedtls_ecp_group ref; in pk_group_id_from_group() local
390 mbedtls_ecp_group_init( &ref ); in pk_group_id_from_group()
395 mbedtls_ecp_group_free( &ref ); in pk_group_id_from_group()
396 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &ref, *id ) ); in pk_group_id_from_group()
399 if( grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
400 mbedtls_mpi_cmp_mpi( &grp->P, &ref.P ) == 0 && in pk_group_id_from_group()
401 mbedtls_mpi_cmp_mpi( &grp->A, &ref.A ) == 0 && in pk_group_id_from_group()
402 mbedtls_mpi_cmp_mpi( &grp->B, &ref.B ) == 0 && in pk_group_id_from_group()
403 mbedtls_mpi_cmp_mpi( &grp->N, &ref.N ) == 0 && in pk_group_id_from_group()
404 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group()
405 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group()
407 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group()
415 mbedtls_ecp_group_free( &ref ); in pk_group_id_from_group()