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.

Parameters
sess[IN] Session information handle.
masterKey[OUT] Master key.
masterKeySize[OUT] Size of the master key.
Return values
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.