openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SESS_GetMasterKey()

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

Obtain the master key of a session.

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