openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_GetSessionTicketKey()

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

Obtain the default ticket key of the HiTLS.

The key is used to encrypt and decrypt the ticket 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[IN] Config Context.
key[OUT] Obtained ticket key.
keySize[IN] Size of the key array.
outSize[OUT] Size of the obtained ticket key.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.