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

121 lines
3.3 KiB
XML
Raw Permalink 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>81</hex>
</command>
<data extend="data">
<certificateNoLen len="4" :value="certificateNoLength()" cn="证书序列号长度">
证书序列号的长度
</certificateNoLen>
<certificateNo cn="证书序列号">
X509证书序号
</certificateNo>
<dataLength len="4" :value="dataLen()" cn="用于签名的信息数据的字节长度">
数据长度。
</dataLength>
<infoData cn="要签名的信息">
签名数据内容
</infoData>
<signatureLen len="4" :value="signatureLen()" cn="签名长度">
签名的字节长度
</signatureLen>
<signature cn="计算的签名(DER)">
计算的签名(DER)
</signature>
<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>82</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="公钥不符合编码规则">
<hex>04</hex>
</option>
<option cn="无效的签名标识">
<hex>06</hex>
</option>
<option cn="无效的附加标识">
<hex>07</hex>
</option>
<option cn="密钥奇偶校验错误">
<hex>10</hex>
</option>
<option cn="LMK 错误">
LMK 错误;报告给管理员。
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="DSP 错误">
DSP 错误;报告给管理员。
<hex>47</hex>
</option>
<option cn="密钥块长度错误">
<hex>76</hex>
</option>
<option cn="信息长度错">
<hex>80</hex>
</option>
</options>
</error>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>function signatureLen(){
var data = $packet.data;
return data.signature.length;
}
function dataLen(){
var data = $packet.data;
return data.infoData.length;
}
function certificateNoLength(){
var data = $packet.data;
return data.certificateNo.length;
} </script>
</packet>