openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetEncryptThenMac()

int32_t HITLS_CFG_SetEncryptThenMac ( HITLS_Config config,
uint32_t  encryptThenMacType 
)

Set the Encrypt-Then-Mac mode.

参数
config[IN] TLS link configuration
isEncryptThenMac[IN] Indicates whether to enable the Encrypt-Then-Mac mode.
返回值
HITLS_NULL_INPUT,theinput parameter pointer is null.
HITLS_SUCCESS,ifsuccessful.