Lines Matching refs:dhm
343 rsa, dhm, ecdsa, ecdh; member
403 todo.dhm = 1; in benchmark()
719 if( todo.dhm ) in benchmark()
731 mbedtls_dhm_context dhm; in benchmark() local
735 mbedtls_dhm_init( &dhm ); in benchmark()
737 if( mbedtls_mpi_read_string( &dhm.P, 16, dhm_P[i] ) != 0 || in benchmark()
738 mbedtls_mpi_read_string( &dhm.G, 16, dhm_G[i] ) != 0 ) in benchmark()
743 dhm.len = mbedtls_mpi_size( &dhm.P ); in benchmark()
744 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in benchmark()
745 if( mbedtls_mpi_copy( &dhm.GY, &dhm.GX ) != 0 ) in benchmark()
750 ret |= mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, in benchmark()
752 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
756 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
758 mbedtls_dhm_free( &dhm ); in benchmark()