xrtSshPublicKeyLineRead
XRT_API xsshcode xrtSshPublicKeyLineRead( xstrview Line, xsshopensshkeyline* pKeyLine );
;
返回:XRT_API xsshcode xrtSshPublicKeyLineRead( xstrview Line, xsshopensshkeyline* pKeyLine );
示例已编译验证
/* XRT_API xsshcode xrtSshPublicKeyLineRead( xstrview Line, xsshopensshkeyline* pKeyLine ); */ result = xrtSshPublicKeyLineRead();
xrtSshPublicKeyLineDecode
XRT_API xsshcode xrtSshPublicKeyLineDecode( const xsshopensshkeyline* pKeyLine, void* pBlob, size_t iCapacity, xsshpublickey* pPublicKey );
;
返回:XRT_API xsshcode xrtSshPublicKeyLineDecode( const xsshopensshkeyline* pKeyLine, void* pBlob, size_t iCapacity, xsshpublickey* pPublicKey );
示例已编译验证
/* XRT_API xsshcode xrtSshPublicKeyLineDecode( const xsshopensshkeyline* pKeyLine, void* pBlob, size_t iCapacity, xsshpublickey* pPublicKey ); */ result = xrtSshPublicKeyLineDecode();
xrtSshPublicKeyLineMatch
不分配解码缓冲,直接比较文本行与完整原始公钥 blob。
xsshcode xrtSshPublicKeyLineMatch( const xsshopensshkeyline* pKeyLine, xbytesview Blob, bool* pMatch );
| 参数 | 说明 |
|---|---|
| const xsshopensshkeyline* pKeyLine | KeyLne 参数 |
| xbytesview Blob | 二进制数据 |
| bool* pMatch | 出:匹配详情 |
返回:不分配解码缓冲,直接比较文本行与完整原始公钥 blob。
示例已编译验证
/* 不分配解码缓冲,直接比较文本行与完整原始公钥 blob。 */ result = xrtSshPublicKeyLineMatch(pKeyLine, Blob, pMatch);