Lines Matching refs:R
77 mbedtls_ecp_point R; in mbedtls_ecdsa_sign() local
84 mbedtls_ecp_point_init( &R ); in mbedtls_ecdsa_sign()
97 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_keypair( grp, &k, &R, f_rng, p_rng ) ); in mbedtls_ecdsa_sign()
98 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( r, &R.X, &grp->N ) ); in mbedtls_ecdsa_sign()
151 mbedtls_ecp_point_free( &R ); in mbedtls_ecdsa_sign()
205 mbedtls_ecp_point R; in mbedtls_ecdsa_verify() local
207 mbedtls_ecp_point_init( &R ); in mbedtls_ecdsa_verify()
251 MBEDTLS_MPI_CHK( mbedtls_ecp_muladd( grp, &R, &u1, &grp->G, &u2, Q ) ); in mbedtls_ecdsa_verify()
253 if( mbedtls_ecp_is_zero( &R ) ) in mbedtls_ecdsa_verify()
263 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &R.X, &R.X, &grp->N ) ); in mbedtls_ecdsa_verify()
268 if( mbedtls_mpi_cmp_mpi( &R.X, r ) != 0 ) in mbedtls_ecdsa_verify()
275 mbedtls_ecp_point_free( &R ); in mbedtls_ecdsa_verify()