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

117 lines
3.3 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>66</hex>
</command>
<data extend="data">
<key cn="ZPK">
LMK(06-07)加密下的ZPK
27位的索引号16位机构号+3位密钥类型+8位密钥索引号
</key>
<log len="1" cn="加解密标识">
<options>
<option cn="加密">
<hex>0</hex>
</option>
<option cn="解密">
<hex>1</hex>
</option>
</options>
</log>
<AlgorithmKey len="1" cn="算法标识" required="false">
取值P可选没有此选项默认为算法为3DES
</AlgorithmKey>
<alg len="1" cn="加密算法" :if="null != $packet.data.AlgorithmKey">
<options>
<option cn="3DES">
<hex>0</hex>
</option>
<option cn="SM4">
<hex>1</hex>
</option>
</options>
</alg>
<pin cn="PIN数据" >
PIN数据
</pin>
<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>67</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="LMK 错误">
LMK 错误;报告给管理员。
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="不在授权状态">
<hex>17</hex>
</option>
</options>
</error>
<info :len="pinLen()" cn="PIN数据">
PIN数据
</info>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>
function pinLen(){
if(1 == $packet.get('data').get('alg$option')){
return 16
}else {
return 8
}
}
<!--function dcaLen() {
if(1 == $packet.get('data').get('alg$option')){
return 32
}else {
return 16
}
}-->
<!-- function infoLen(){
if(1 == $packet.get('data').get('alg$option')){
return 16
}else {
return 8
}
}-->
<!--function infoLen(){
return $packet.get('data').get('sca$option').length;
}-->
</script>
</packet>