mbedtls_dhm_set_group() function
This function sets the prime modulus and generator.
Arguments
ctx
The DHM context to configure. This must be initialized.
P
The MPI holding the DHM prime modulus. This must be an initialized MPI.
G
The MPI holding the DHM generator. This must be an initialized MPI.
Return value
\c 0 if successful. An \c MBEDTLS_ERR_DHM_XXX error code on failure.
Notes
This function can be used to set \c ctx->P, \c ctx->G in preparation for mbedtls_dhm_make_params().