openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetTmpDh()

int32_t HITLS_SetTmpDh ( HITLS_Ctx ctx,
HITLS_CRYPT_Key dhPkey 
)

Set the DH parameter specified by the user.

Parameters
ctx[IN/OUT] hitls context.
dhPkey[IN] User-specified DH key.
Return values
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUTctx or dhPkey field is NULL