openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetEcPointFormats()

int32_t HITLS_CFG_SetEcPointFormats ( HITLS_Config config,
const uint8_t *  pointFormats,
uint32_t  pointFormatsSize 
)

Set the format of the ec point.

Attention
Currently, this parameter can only be set to HITLS_ECPOINTFORMAT_UNCOMPRESSED.
Parameters
config[OUT] Config context.
pointFormats[IN] EC point format, corresponding to the HITLS_ECPointFormat enumerated value.
pointFormatsSize[IN] EC point format length
Return values
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.