95 lines
2.5 KiB
XML
95 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
||
<packet extend="base">
|
||
<req>
|
||
|
||
<command>
|
||
<hex>71</hex>
|
||
</command>
|
||
<data extend="data">
|
||
|
||
|
||
<publicKeyLength len="4" :value="publicKeyLen()" cn="公钥的长度"></publicKeyLength>
|
||
|
||
<publicKey cn="公钥"></publicKey>
|
||
|
||
<key cn="密钥">LMK30-31下加密的密钥</key>
|
||
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为
|
||
“X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
|
||
|
||
</req>
|
||
<res>
|
||
|
||
<command>
|
||
<hex>72</hex>
|
||
</command>
|
||
<data>
|
||
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
|
||
<options>
|
||
<option cn="无错误">
|
||
<hex>00</hex>
|
||
</option>
|
||
<option cn="公钥不符合编码规则">
|
||
<hex>04</hex>
|
||
</option>
|
||
<option cn="无效的签名标识">
|
||
<hex>06</hex>
|
||
</option>
|
||
<option cn="无效的附加标识">
|
||
<hex>07</hex>
|
||
</option>
|
||
<option cn="密钥奇偶校验错误">
|
||
<hex>10</hex>
|
||
</option>
|
||
<option cn="LMK 错误">
|
||
LMK 错误;报告给管理员。
|
||
<hex>13</hex>
|
||
</option>
|
||
<option cn="输入数据错">
|
||
<hex>15</hex>
|
||
</option>
|
||
<option cn="DSP 错误">
|
||
DSP 错误;报告给管理员。
|
||
<hex>47</hex>
|
||
</option>
|
||
<option cn="密钥块长度错误">
|
||
<hex>76</hex>
|
||
</option>
|
||
<option cn="信息长度错">
|
||
<hex>80</hex>
|
||
</option>
|
||
</options>
|
||
</error>
|
||
|
||
<keyLength len="4" cn="长度(pub)">
|
||
公钥加密的密文长度
|
||
</keyLength>
|
||
|
||
<key :len="getKeyLen()" cn="密文(pub)">
|
||
公钥加密的密文的DER编码
|
||
</key>
|
||
|
||
</data>
|
||
|
||
|
||
|
||
</res>
|
||
<script>function publicKeyLen(){
|
||
var data = $packet.data;
|
||
return data.publicKey.length;
|
||
}
|
||
|
||
|
||
function getKeyLen() {
|
||
return Util.a2i( $final.getSection('data').getSection('keyLength') )
|
||
}
|
||
</script>
|
||
</packet> |