114 lines
3.0 KiB
XML
114 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
||
<packet extend="base">
|
||
<req>
|
||
|
||
<command>
|
||
<hex>LB</hex>
|
||
</command>
|
||
<data extend="data">
|
||
|
||
<indexFlag len="1" cn="索引标志">
|
||
值为“K”。
|
||
</indexFlag>
|
||
|
||
<index len="27" cn="索引地址">
|
||
指示用户密钥存储区的27位地址。
|
||
27位的索引号:16位机构号+3位密钥类型+8位密钥索引号
|
||
</index>
|
||
|
||
<key cn="KEY">
|
||
被加密的密钥
|
||
</key>
|
||
|
||
<checkFlag len="1" required="false" cn="校验标志">
|
||
取值P(可选项)
|
||
</checkFlag>
|
||
|
||
<checkValue :if="hasCheckFlag()" cn="校验值">
|
||
CheckValue校验值,仅“校验标志”为P时此值显示。
|
||
</checkValue>
|
||
|
||
<startTime len="8" cn="密钥启用日期">
|
||
YYYYMMDD
|
||
</startTime>
|
||
|
||
<endTime len="8" cn="密钥到期日期">
|
||
YYYYMMDD
|
||
</endTime>
|
||
|
||
<businessKey len="1" cn="业务标识" required="false">
|
||
取值 N(可选)当选定此标识时,表示密钥加密方案采用默认方式
|
||
</businessKey>
|
||
|
||
<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>LC</hex>
|
||
</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="输入数据错">
|
||
<hex>15</hex>
|
||
</option>
|
||
<option cn="无效的用户密钥存储索引">
|
||
<hex>21</hex>
|
||
</option>
|
||
<option cn="无效的索引值">
|
||
<hex>22</hex>
|
||
</option>
|
||
<option cn="无效的密钥方案">
|
||
<hex>26</hex>
|
||
</option>
|
||
<option cn="数据长度错">
|
||
<hex>80</hex>
|
||
</option>
|
||
</options>
|
||
</error>
|
||
|
||
<tailSep len="1" required="false" cn="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为 “X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
|
||
|
||
</res>
|
||
<script>
|
||
function hasCheckFlag(){
|
||
if( "P".equals(new String($packet.data.checkFlag) ))
|
||
{
|
||
return true;
|
||
}else{
|
||
return false;
|
||
}
|
||
}
|
||
</script>
|
||
</packet>
|