Lines Matching refs:dhm
511 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
521 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhm()
568 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
569 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
603 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm()
664 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument
669 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhmfile()
675 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile()
719 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
721 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test()
726 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test()
741 mbedtls_dhm_free( &dhm ); in mbedtls_dhm_self_test()