openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetGroups()

int32_t HITLS_CFG_SetGroups ( HITLS_Config config,
const uint16_t *  groups,
uint32_t  groupsSize 
)

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,ifsuccessful. For details about other error codes, see hitls_error.h.