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

117 lines
3.9 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>
<bin>4D41</bin>
</command>
<data extend="data">
<tag len="1" cn="IV标识">
<text>P</text>
</tag>
<alg len="1" cn="MAC 算法">
<options>
<option cn="3DES">
<text>1</text>
</option>
<option cn="SM4">
<text>2</text>
</option>
</options>
</alg>
<type len="1" cn="密钥类型">
<options>
<option cn="ZAK13DES 认证密钥) ">
<text>0</text>
</option>
<option cn="ZAK2SM4 认证密钥) ">
<text>1</text>
</option>
</options>
</type>
<full len="1" cn="填充类型">
<text>0</text>
</full>
<macLen len="1" cn="MAC 长度标识">
<text>1</text>
</macLen>
<key cn="密钥">
X+K+27 位的索引号
27 位的索引号16 位机构号+3 位密钥类型+8 位密钥 索引号,具体要求组成见每 2 章节。
</key>
<MACData maxLen="4096" cn="MAC数据">
需要 MAC 的数据HEX 格式n=4096 注:数据长度应该为 8 或 16 的整数倍,如果不是 8 或 16 的整数倍,系统默认在数据后面填充 0x00 组成 8 或 16 的整数倍。
</MACData>
<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>
<bin>4D42</bin>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="MAC校验错">
<hex>01</hex>
</option>
<option cn="TAK奇偶校验错">
<hex>10</hex>
</option>
<option cn="用户存储区没有装载密钥">
<hex>12</hex>
</option>
<option cn="LMK错误报告给管理员">
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="无效的用户存储索引">
<hex>21</hex>
</option>
<option cn="密钥方案错误">
<hex>26</hex>
</option>
<option cn="输入数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<MAC cn="MAC数据" len="8">
所计算出的MAC。有MAC返回标识决定默认8H
</MAC>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script></script>
</packet>