openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetEncryptThenMac()

int32_t HITLS_SetEncryptThenMac ( HITLS_Ctx ctx,
uint32_t  encryptThenMacType 
)

Setting the Encrypt-Then-Mac mode.

Parameters
ctx[IN] TLS connection handle.
isEncryptThenMac[IN] Indicates whether to enable the Encrypt-Then-Mac mode.
Return values
HITLS_NULL_INPUT,theinput parameter pointer is NULL.
HITLS_SUCCESS,ifsuccessful.