openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SESS_SetMasterKey()

int32_t HITLS_SESS_SetMasterKey ( HITLS_Session sess,
const uint8_t *  masterKey,
uint32_t  masterKeySize 
)

Set the master key of a session.

参数
sess[OUT] Session information handle.
masterKey[IN] Master key.
masterKeySize[IN] Size of the master key.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.