124 lines
3.4 KiB
XML
124 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
||
<packet extend="base">
|
||
<req>
|
||
|
||
<command>
|
||
<hex>A4</hex>
|
||
</command>
|
||
<data extend="data">
|
||
<num len="1" cn="成分数量">
|
||
2到9
|
||
</num>
|
||
|
||
<keyType len="3" cn="密钥类型">
|
||
查看密钥类型表。
|
||
</keyType>
|
||
|
||
<lmkSolution len="1" cn="密钥方案(LMK)">
|
||
LMK下加密密钥的方案
|
||
</lmkSolution>
|
||
|
||
<keys cn="所有成分">
|
||
所有成分
|
||
</keys>
|
||
|
||
<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>A5</hex>
|
||
</command>
|
||
<data>
|
||
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
|
||
<options>
|
||
<option cn="无错误">
|
||
<hex>00</hex>
|
||
</option>
|
||
<option cn="无效的成份号">
|
||
<hex>03</hex>
|
||
</option>
|
||
<option cn="成份奇偶校验错">
|
||
<hex>10</hex>
|
||
</option>
|
||
<option cn="用户存储区中没有装载密钥">
|
||
<hex>12</hex>
|
||
</option>
|
||
<option cn="LMK 错误">
|
||
LMK 错误;报告给管理员。
|
||
<hex>13</hex>
|
||
</option>
|
||
<option cn="输入数据错">
|
||
<hex>15</hex>
|
||
</option>
|
||
<option cn="不在授权状态">
|
||
<hex>17</hex>
|
||
</option>
|
||
<option cn="无效用户存储区索引">
|
||
<hex>21</hex>
|
||
</option>
|
||
<option cn="无效的密钥方案">
|
||
<hex>26</hex>
|
||
</option>
|
||
<option cn="输入数据长度错误">
|
||
<hex>80</hex>
|
||
</option>
|
||
</options>
|
||
</error>
|
||
|
||
<keyHead len="1" cn="lmk 头">
|
||
如果是 'Z' ,lmk 16 个字节长
|
||
如果是 'X,U,S' ,lmk 32 个字节长
|
||
如果是 'Y,T' ,lmk 48 个字节长
|
||
</keyHead>
|
||
|
||
<key :len="Len()" cn="密钥(LMK)">
|
||
LMK 加密下的密钥。
|
||
</key>
|
||
|
||
<kcv :len="KCVLen()" cn="密钥校验值">
|
||
密钥校验值。密钥方案为S时,此载为32H。
|
||
</kcv>
|
||
|
||
<tailSep len="1" required="false" cn="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为 “X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
|
||
|
||
</res>
|
||
<script>function Len() {
|
||
return Util.lenChoice($final.getSection('data').getSection('keyHead').getValue() )
|
||
}
|
||
|
||
function KCVLen() {
|
||
|
||
if( $final.data.keyHead.eqStr("S") ){
|
||
return 32
|
||
}
|
||
return 16
|
||
}
|
||
</script>
|
||
</packet> |