Lines Matching refs:dhm
480 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
490 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhm()
537 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
538 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
567 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm()
574 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm()
635 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument
640 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhmfile()
646 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile()
690 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
692 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test()
697 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test()
712 mbedtls_dhm_free( &dhm ); in mbedtls_dhm_self_test()