mbedtls_dhm_parse_dhm() function
This function parses DHM parameters in PEM or DER format.
Arguments
dhm
The DHM context to import the DHM parameters into. This must be initialized.
dhmin
The input buffer. This must be a readable buffer of length \p dhminlen Bytes.
dhminlen
The size of the input buffer \p dhmin, including the terminating \c NULL Byte for PEM data.
Return value
\c 0 on success. An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX error code on failure.
mbedtls_dhm_parse_dhm() is called by 2 functions and calls 9 functions:
![]()
mbedtls_dhm_parse_dhm()
mbedtls_dhm_parse_dhm() reads 2 variables:
![]()
mbedtls_dhm_parse_dhm()