101 lines
3.0 KiB
XML
101 lines
3.0 KiB
XML
<?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="终止信息分隔符">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为“X’19”。
|
||
<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="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为 “X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
|
||
|
||
</res>
|
||
<script> </script>
|
||
</packet> |