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

114 lines
3.0 KiB
XML
Raw Permalink 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>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="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为
“X19”。
<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="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<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>