sydapi/DProto/7E.xml
2021-06-29 11:32:24 +08:00

86 lines
2.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" ?>
<packet extend="base">
<req>
<command>
<hex>7E</hex>
</command>
<data extend="data">
<userCertificateType len="1" cn="签名数据类型">
<options>
<option cn="签名证书">
<hex>0</hex>
</option>
<option cn="加密证书">
<hex>1</hex>
</option>
</options>
</userCertificateType>
<DNLen len="4" :value="DNLen()" cn="证书长度">
证书长度
</DNLen>
<DN cn="证书">
证书
</DN>
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为
“X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</req>
<res>
<command>
<hex>7F</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="无效的索引值">
<hex>21</hex>
</option>
</options>
</error>
<publicKeyLen len="4" cn="公钥的字节长度">
公钥的字节长度
</publicKeyLen>
<publicKey :len="publicKeyLen()" cn="公钥">
公钥
</publicKey>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>function DNLen() {
return $packet.data.DN.length
}
function publicKeyLen() {
return Util.a2i( $final.getSection('data').getSection('publicKeyLen') )
} </script>
</packet>