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

162 lines
4.6 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>JC</hex>
</command>
<data extend="data">
<zpk cn="ZPK" >
当前加密 PIN 块的 ZPKLMK 对06-07下加密。
27 位的索引号16 位机构号+3 位密钥类型+8 位密钥
索引号
</zpk>
<algorithmKey len="1" cn="算法标识" required="false">
取值 P可选
</algorithmKey>
<sca len="1" cn="源算法 SCA" :if=" null != $packet.data.algorithmKey ">
<options>
<option cn="3DES">
<hex>1</hex>
</option>
<option cn="SM4">
<hex>2</hex>
</option>
</options>
</sca>
<dca len="1" cn="目的算法 DCA" :if=" null != $packet.data.algorithmKey ">
<options>
<option cn="3DES">
<hex>1</hex>
</option>
<option cn="SM4">
<hex>2</hex>
</option>
</options>
</dca>
<businessKey len="1" cn="业务标识">
取值 N可选当选定此标识时表示密钥加密方案采用默认方式
</businessKey>
<PinBlock :len="scaLen()" cn="PIN 块" >
源 ZPK 下加密的源 PIN 块
</PinBlock>
<pinBlockFormat len="2" cn="PIN 块格式" >
源 PIN 块的格式代码。
01:带主帐号的 ANSI9.8 格式
02: Docutel ATM
03: Diebold and IBM ATM,
04: Plus Network
05: ISO9564-1-1 格式1NP..PR...R
06:不带主帐号的 ANSI9.8 格式
</pinBlockFormat>
<account len="12" cn="账号" >
账号中去除校验位的最右 12 位
</account>
<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>JD</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="源TPK奇偶校验错">
<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="PIN块错误">
<hex>20</hex>
</option>
<option cn="无效的用户存储索引">
<hex>21</hex>
</option>
<option cn="帐号无效">
<hex>22</hex>
</option>
<option cn="无效 PIN 块格式代码">
<hex>23</hex>
</option>
<option cn="PIN 小于 4 位或大于 12 位。">
<hex>24</hex>
</option>
<option cn="无效的密钥方案">
<hex>26</hex>
</option>
<option cn="数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<pinBlock :len="dcaLen()" cn="PIN 块" >
LMK 对02-03下加密的 PIN
</pinBlock>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>
function scaLen() {
if(1 == $packet.get('data').get('sca$option')){
return 32
}else {
return 16
}
}
function dcaLen() {
if(1 == $packet.get('data').get('dca$option')){
return 32
}else {
return 16
}
} </script>
</packet>