Lines Matching refs:dhm
473 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
483 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhm()
530 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
531 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
560 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm()
567 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm()
628 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument
633 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhmfile()
639 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile()
667 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
669 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test()
674 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test()
689 mbedtls_dhm_free( &dhm ); in mbedtls_dhm_self_test()