Lines Matching refs:dhm
415 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
467 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
468 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
497 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm()
504 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm()
562 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument
571 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile()
598 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
600 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test()
605 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test()
620 mbedtls_dhm_free( &dhm ); in mbedtls_dhm_self_test()