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

101 lines
3.0 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>MA</hex>
</command>
<data extend="data">
<businessKey len="1" cn="业务标识" required="false">
取值 N可选当选定此标识时表示密钥加密方案采用默认方式
</businessKey>
<IVKey len="1" cn="IV标识" required="false">
取值P可选
</IVKey>
<IV len="16" :if=" null != $packet.data.IVKey" cn="IV" >
IV标识存在时存在
计算MAC的IV值默认为8字节0x00
</IV>
<TAK cn="TAK">
LMK对16-17下加密的TAK。
27位的索引号16位机构号+3位密钥类型+8位密钥索引号
</TAK>
<MACData maxLen="1024" cn="MAC数据">
生成MAC的数据n=1024
数据长度应该为8的整数倍如果不是8的整数倍系统默认在数据后面填充0x00组成8的整数倍。
</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>
<hex>MB</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</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>