xrtSshPublicKeyRead
读取公钥算法和其余算法专用字段,不解释 Parameters。
xsshcode xrtSshPublicKeyRead( xbytesview Blob, xsshpublickey* pPublicKey );
| 参数 | 说明 |
|---|---|
| xbytesview Blob | 二进制数据 |
| xsshpublickey* pPublicKey | 公钥 |
返回:读取公钥算法和其余算法专用字段,不解释 Parameters。
示例已编译验证
/* 读取公钥算法和其余算法专用字段,不解释 Parameters。 */ result = xrtSshPublicKeyRead(Blob, pPublicKey);
xrtSshSignatureRead
严格读取由算法名和签名字节组成的 SSH signature blob。
xsshcode xrtSshSignatureRead( xbytesview Blob, xsshsignature* pSignature );
| 参数 | 说明 |
|---|---|
| xbytesview Blob | 二进制数据 |
| xsshsignature* pSignature | 签名 |
返回:严格读取由算法名和签名字节组成的 SSH signature blob。
示例已编译验证
/* 严格读取由算法名和签名字节组成的 SSH signature blob。 */ result = xrtSshSignatureRead(Blob, pSignature);
xrtSshSignatureWrite
写入算法无关的 SSH signature blob。
xsshcode xrtSshSignatureWrite( xsshwriter* pWriter, xstrview Algorithm, xbytesview Signature );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xstrview Algorithm | 算法标识 |
| xbytesview Signature | 签名 |
返回:写入算法无关的 SSH signature blob。
示例已编译验证
/* 写入算法无关的 SSH signature blob。 */ result = xrtSshSignatureWrite(pWriter, Algorithm, Signature);
xrtSshEd25519PublicKeyRead
严格读取 ssh-ed25519 公钥并返回 32 字节借用视图。
xsshcode xrtSshEd25519PublicKeyRead( xbytesview Blob, xbytesview* pPublicKey );
| 参数 | 说明 |
|---|---|
| xbytesview Blob | 二进制数据 |
| xbytesview* pPublicKey | 公钥 |
返回:严格读取 ssh-ed25519 公钥并返回 32 字节借用视图。
示例已编译验证
/* 严格读取 ssh-ed25519 公钥并返回 32 字节借用视图。 */ result = xrtSshEd25519PublicKeyRead(Blob, pPublicKey);
xrtSshEd25519PublicKeyWrite
写入规范 ssh-ed25519 公钥 blob。
xsshcode xrtSshEd25519PublicKeyWrite( xsshwriter* pWriter, xbytesview PublicKey );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xbytesview PublicKey | 公钥 |
返回:写入规范 ssh-ed25519 公钥 blob。
示例已编译验证
/* 写入规范 ssh-ed25519 公钥 blob。 */ result = xrtSshEd25519PublicKeyWrite(pWriter, PublicKey);
xrtSshEd25519SignatureRead
严格读取 ssh-ed25519 签名并返回 64 字节借用视图。
xsshcode xrtSshEd25519SignatureRead( xbytesview Blob, xbytesview* pSignature );
| 参数 | 说明 |
|---|---|
| xbytesview Blob | 二进制数据 |
| xbytesview* pSignature | 签名 |
返回:严格读取 ssh-ed25519 签名并返回 64 字节借用视图。
示例已编译验证
/* 严格读取 ssh-ed25519 签名并返回 64 字节借用视图。 */ result = xrtSshEd25519SignatureRead(Blob, pSignature);
xrtSshEd25519SignatureWrite
写入规范 ssh-ed25519 signature blob。
xsshcode xrtSshEd25519SignatureWrite( xsshwriter* pWriter, xbytesview Signature );
| 参数 | 说明 |
|---|---|
| xsshwriter* pWriter | 写入器 |
| xbytesview Signature | 签名 |
返回:写入规范 ssh-ed25519 signature blob。
示例已编译验证
/* 写入规范 ssh-ed25519 signature blob。 */ result = xrtSshEd25519SignatureWrite(pWriter, Signature);