Lines Matching refs:dhm
243 rsa, dhm, ecdsa, ecdh; member
307 todo.dhm = 1; in main()
667 if( todo.dhm ) in main()
679 mbedtls_dhm_context dhm; in main() local
683 mbedtls_dhm_init( &dhm ); in main()
685 if( mbedtls_mpi_read_string( &dhm.P, 16, dhm_P[i] ) != 0 || in main()
686 mbedtls_mpi_read_string( &dhm.G, 16, dhm_G[i] ) != 0 ) in main()
691 dhm.len = mbedtls_mpi_size( &dhm.P ); in main()
692 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in main()
693 if( mbedtls_mpi_copy( &dhm.GY, &dhm.GX ) != 0 ) in main()
698 ret |= mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, in main()
700 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
704 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
706 mbedtls_dhm_free( &dhm ); in main()