xrtSshSessionTcpKexBegin

使用 XRT 系统安全随机临时私钥开始当前已就绪的 Curve25519 KEX。

xsshcode xrtSshSessionTcpKexBegin( xsshsessiontcp* pSession, xbytesview ServerHostKey );
参数说明
xsshsessiontcp* pSession会话对象
xbytesview ServerHostKeyServerHostKey 参数
返回:使用 XRT 系统安全随机临时私钥开始当前已就绪的 Curve25519 KEX。

示例已编译验证

/* 使用 XRT 系统安全随机临时私钥开始当前已就绪的 Curve25519 KEX。 */
result = xrtSshSessionTcpKexBegin(pSession, ServerHostKey);

xrtSshSessionTcpWritePrepare

使用 XRT 系统安全随机 padding 同时准备协议与 TCP packet 事务。

xsshcode xrtSshSessionTcpWritePrepare( xsshsessiontcp* pSession, xbytesview Payload, xsshchannelcore* pChannel, xsshreplyqueue* pReplies, uint64 iReplyToken, uint64 iNowMs, xsshsessionpacketkind* pKind );
参数说明
xsshsessiontcp* pSession会话对象
xbytesview Payload负载
xsshchannelcore* pChannel通道对象
xsshreplyqueue* pRepliesReles 参数
uint64 iReplyTokenRelyToken 参数
uint64 iNowMs当前毫秒时间
xsshsessionpacketkind* pKind类型
返回:使用 XRT 系统安全随机 padding 同时准备协议与 TCP packet 事务。

示例已编译验证

/* 使用 XRT 系统安全随机 padding 同时准备协议与 TCP packet 事务。 */
result = xrtSshSessionTcpWritePrepare(pSession, Payload, pChannel, pReplies, iReplyToken, iNowMs, pKind);