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.

参数
ctx[IN/OUT] hitls context.
dhPkey[IN] User-specified DH key.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUTctx or dhPkey field is NULL