Set the group supported during key exchange. The group supported by HiTLS can be queried in HITLS_NamedGroup.
- Attention
- If a group is not supported, an error will be reported during configuration check.
- Parameters
-
config | [OUT] Config context. |
groups | [IN] Key exchange group. Corresponds to the HITLS_NamedGroup enumerated value. |
groupsSize | [IN] Group length |
- Return values
-
HITLS_SUCCESS,if | successful. For details about other error codes, see hitls_error.h. |