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

102 lines
2.8 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>67</hex>
</command>
<data extend="data">
<srcKey cn="源ZPK">
LMK(06-07)加密下的ZPK
27位的索引号16位机构号+3位密钥类型+8位密钥索引号
</srcKey>
<aimKey cn="目的ZPK">
LMK(06-07)加密下的ZPK
27位的索引号16位机构号+3位密钥类型+8位密钥索引号
</aimKey>
<AlgorithmKey len="1" cn="算法标识">
取值P可选没有此选项默认为算法为3DES
</AlgorithmKey>
<alg len="1" cn="加密算法" :if="useAlgorithmKey()">
<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>68</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 useAlgorithmKey(){
if( "P".equals(new String($packet.data.AlgorithmKey) ))
{
return true;
}else{
return false;
}
}
function pinLen(){
if(1 == $packet.get('data').get('alg$option')){
return 16
}else {
return 8
}
}
</script>
</packet>