Lines Matching refs:u2
247 * Compute R = u1 * G + u2 * Q
255 mbedtls_mpi u1, u2, xR, yR;
263 mbedtls_mpi_init( &u1 ); mbedtls_mpi_init( &u2 );
269 TEST_ASSERT( mbedtls_test_read_mpi( &u2, u2_str ) == 0 );
283 &u1, &grp.G, &u2, &Q, &ctx );
298 &u1, &grp.G, &u2, &Q, &ctx );
307 mbedtls_mpi_free( &u1 ); mbedtls_mpi_free( &u2 );
504 /* Compute R = u1 * P1 + u2 * P2 */
507 mbedtls_mpi u1, u2;
516 mbedtls_mpi_init( &u2 );
520 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &u2, u2_bin->x, u2_bin->len ) );
526 TEST_EQUAL( 0, mbedtls_ecp_muladd( &grp, &R, &u1, &P1, &u2, &P2 ) );
541 mbedtls_mpi_free( &u2 );