Lines Matching refs:ref
373 mbedtls_ecp_group ref; in pk_group_id_from_group() local
376 mbedtls_ecp_group_init( &ref ); in pk_group_id_from_group()
381 mbedtls_ecp_group_free( &ref ); in pk_group_id_from_group()
382 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &ref, *id ) ); in pk_group_id_from_group()
385 if( grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
386 mbedtls_mpi_cmp_mpi( &grp->P, &ref.P ) == 0 && in pk_group_id_from_group()
387 mbedtls_mpi_cmp_mpi( &grp->A, &ref.A ) == 0 && in pk_group_id_from_group()
388 mbedtls_mpi_cmp_mpi( &grp->B, &ref.B ) == 0 && in pk_group_id_from_group()
389 mbedtls_mpi_cmp_mpi( &grp->N, &ref.N ) == 0 && in pk_group_id_from_group()
390 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group()
391 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group()
393 mbedtls_mpi_get_bit( &grp->G.Y, 0 ) == mbedtls_mpi_get_bit( &ref.G.Y, 0 ) ) in pk_group_id_from_group()
401 mbedtls_ecp_group_free( &ref ); in pk_group_id_from_group()