98 lines
2.7 KiB
XML
98 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<packet extend="base">
|
|
<req>
|
|
|
|
<command>
|
|
<bin>8016</bin>
|
|
</command>
|
|
<data extend="data">
|
|
<certLen len="2" format="X" :value="certificateLen()" cn="证书长度"></certLen>
|
|
<cert cn="证书"></cert>
|
|
</data>
|
|
|
|
|
|
|
|
</req>
|
|
<res>
|
|
|
|
<command>
|
|
<bin>8017</bin>
|
|
</command>
|
|
<data>
|
|
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
|
|
<options>
|
|
<option cn="无错误">
|
|
<hex>00</hex>
|
|
</option>
|
|
<option cn="无效的私钥类型">
|
|
<hex>03</hex>
|
|
</option>
|
|
<option cn="无效私钥标记">
|
|
<hex>04</hex>
|
|
</option>
|
|
<option cn="无效的哈希标识">
|
|
<hex>05</hex>
|
|
</option>
|
|
<option cn="无效的签名标识">
|
|
<hex>06</hex>
|
|
</option>
|
|
<option cn="无效的附加标识">
|
|
<hex>07</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>49</hex>
|
|
</option>
|
|
<option cn="无效摘要信息语法(仅仅无哈希模式)">
|
|
<hex>74</hex>
|
|
</option>
|
|
<option cn="公钥长度错误">
|
|
<hex>76</hex>
|
|
</option>
|
|
<option cn="私钥长度错误">
|
|
<hex>78</hex>
|
|
</option>
|
|
<option cn="输入数据长度错误">
|
|
<hex>80</hex>
|
|
</option>
|
|
</options>
|
|
</error>
|
|
|
|
<certInfoLen len="2" format="X" cn="证书信息的字节长度">
|
|
证书信息的字节长度
|
|
</certInfoLen>
|
|
|
|
<certInfo :len="certInfoLen()" cn="证书">
|
|
证书信息
|
|
</certInfo>
|
|
</data>
|
|
|
|
|
|
|
|
</res>
|
|
<script>function certificateLen(){
|
|
var data = $packet.data;
|
|
int len = data.cert.length
|
|
byte[] ret = new byte[2];
|
|
ret[0] = len / 256
|
|
ret[1] = len % 256
|
|
|
|
return ret
|
|
}
|
|
|
|
function certInfoLen() {
|
|
return Util.b2i( $final.getSection('data').getSection('certInfoLen') )
|
|
} </script>
|
|
</packet>
|