104 lines
3.4 KiB
XML
104 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
||
<packet extend="base">
|
||
<req>
|
||
<command>
|
||
<hex>DE</hex>
|
||
</command>
|
||
<data extend="data">
|
||
|
||
<pvk cn="PVK">
|
||
LMK对(14-15)下加密的PVK;用于生成offset。
|
||
27位的索引号:16位机构号+3位密钥类型+8位密钥索引号
|
||
</pvk>
|
||
|
||
<pin len="16" cn="需要offset的PIN">
|
||
需要offset的PIN;LMK对(02-03)下加密。
|
||
</pin>
|
||
|
||
<pinLen cn="PIN 长度">
|
||
</pinLen>
|
||
|
||
<account cn="账号">
|
||
账号中去除校验位的最右12位。
|
||
</account>
|
||
|
||
<turn len="16" cn="十进制转换表">
|
||
将十六进制转换为十进制的转换表。
|
||
</turn>
|
||
|
||
<pinCheck len="12" cn="PIN校验数据">
|
||
用户定义的、包含十六进制字符和字符“N”的数据,用来指示HSM插入账号最后5位的位置。
|
||
</pinCheck>
|
||
|
||
</data>
|
||
|
||
</req>
|
||
<res>
|
||
|
||
<command>
|
||
<hex>DF</hex>
|
||
</command>
|
||
<data>
|
||
<error len="2" cn="错误代码" format="X" :catch="catchError('%s')">
|
||
<options>
|
||
<option cn="无错误">
|
||
<hex>00</hex>
|
||
</option>
|
||
<option cn="源ZPK奇偶校验错">
|
||
<hex>10</hex>
|
||
</option>
|
||
<option cn="目的ZPK奇偶校验错">
|
||
<hex>11</hex>
|
||
</option>
|
||
<option cn="用户存储区中没有装载密钥">
|
||
<hex>12</hex>
|
||
</option>
|
||
<option cn="LMK错误;报告给管理员">
|
||
<hex>13</hex>
|
||
</option>
|
||
<option cn="加密的 PIN 错误">
|
||
<hex>14</hex>
|
||
</option>
|
||
<option cn="输入数据错">
|
||
<hex>15</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>
|
||
|
||
<offset len="12" cn="Offset">
|
||
所返回PIN的长度。
|
||
</offset>
|
||
|
||
<tailSep len="1" required="false" cn="终止信息分隔符">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为 “X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="消息尾">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
</res>
|
||
<script>
|
||
</script>
|
||
</packet>
|