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

102 lines
2.9 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>AB</hex>
</command>
<data extend = "data">
<keyType len="3" cn="秘钥类型">
密钥类型(固定为002)。
</keyType>
<key cn="密钥LMK">
LMK下加密密钥的方案。
</key>
<keyCheck len="1" cn="输出校验值算法选项" required="false">
取值P默认算法由密钥方案决定
</keyCheck>
<checkAlg len="1" cn="校验值算法" :if=" null != $packet.data.keyCheck ">
<options>
<option cn="3DES">
<hex>0</hex>
</option>
<option cn="SM4">
<hex>1</hex>
</option>
</options>
</checkAlg>
<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>AC</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="用户存储区没有装载密钥">
<hex>12</hex>
</option>
<option cn="LMK错误报告给管理员">
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="无效的密钥方案">
<hex>26</hex>
</option>
</options>
</error>
<key1 :len="len()" cn="密钥明文分量1"></key1>
<key2 :len="len()" cn="密钥明文分量2"></key2>
<keyCheck :len="len()" cn="密钥校验值">
密钥明文的校验值
</keyCheck>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>
function len() {
if(1 == $packet.get('data').get('checkAlg$option')){
return 32
}else {
return 16
}
}
</script>
</packet>