xrtSshSessionTcpKexBegin
使用 XRT 系统安全随机临时私钥开始当前已就绪的 Curve25519 KEX。
xsshcode xrtSshSessionTcpKexBegin( xsshsessiontcp* pSession, xbytesview ServerHostKey );
| 参数 | 说明 |
|---|---|
| xsshsessiontcp* pSession | 会话对象 |
| xbytesview ServerHostKey | ServerHostKey 参数 |
返回:使用 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* pReplies | Reles 参数 |
| uint64 iReplyToken | RelyToken 参数 |
| uint64 iNowMs | 当前毫秒时间 |
| xsshsessionpacketkind* pKind | 类型 |
返回:使用 XRT 系统安全随机 padding 同时准备协议与 TCP packet 事务。
示例已编译验证
/* 使用 XRT 系统安全随机 padding 同时准备协议与 TCP packet 事务。 */ result = xrtSshSessionTcpWritePrepare(pSession, Payload, pChannel, pReplies, iReplyToken, iNowMs, pKind);