openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetSessionTicketKey()

int32_t HITLS_CFG_SetSessionTicketKey ( HITLS_Config config,
const uint8_t *  key,
uint32_t  keySize 
)

Set the default ticket key of the HiTLS. The key is used to encrypt and decrypt tickets in the new session ticket when the HITLS_TicketKeyCb callback function is not set.

注意
The returned key value is as follows: 16-byte key name + 32-byte AES key + 32-byte HMAC key
参数
config[OUT] Config Context.
key[IN] Ticket key to be set.
keySize[IN] Size of the ticket key.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.