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

124 lines
3.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>AE</hex>
</command>
<data extend="data">
<tmkNow cn="TMK" >
LMK 对14-15下加密的当前 TMK、 TPK 或 PVK
</tmkNow>
<tmkStorage cn="TMK" >
LMK 对14-15下加密的存储 TMK、 TPK 或 PVK
</tmkStorage>
<separator cn="分隔符" :if=" null != $packet.data.tmkSolution ">
可选项。如果显示后面的三个域,则该域必须显示。
值为“;”。
如果命令不需要一个可选域,则用一个有效值或 0 填
充。
</separator>
<tmkSolution len="1" cn="密钥方案TMK" required="false">
可选项。TMK 下加密密钥的方案。
</tmkSolution>
<lmkSolution len="1" cn="密钥方案LMK" required="false">
可选项。LMK 下加密密钥的方案。
</lmkSolution>
<keyCheckType len="1" cn="密钥校验值类型" required="false">
可选项。密钥校验值计算方式。
0KCV 向后兼容。
1KCV 6H。
</keyCheckType>
<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>AF</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="当前 TMK、 TPK 或 PVK 奇偶校验错">
<hex>10</hex>
</option>
<option cn="存储 TMK、 TPK 或 PVK 奇偶校验错">
<hex>11</hex>
</option>
<option cn="用户存储区中没有装载密钥">
<hex>12</hex>
</option>
<option cn="LMK 错误">
LMK 错误;报告给管理员。
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="无效用户存储区索引">
<hex>21</hex>
</option>
</options>
</error>
<tmkHead len="1" cn="zpk 头" >
如果是 'Z' 16 个字节长
如果是 'X,U,S' 32 个字节长
如果是 'Y,T' 48 个字节长
</tmkHead>
<tmkKey :len="tmkLen()" cn="ZPKZMK" >
当前密钥下加密的存储密钥
</tmkKey>
<keyCheck :len="keyCheckLen()" cn="密钥校验值">
用 ZPK 加密 64 位 0 的结果。是 16H 还是 6H 取决于 KCV
的类型选项。
当输出的 ZMK 加密的 ZPK 密钥方案为 S 时KCV 选项
为 0 是,输入出 32H
</keyCheck>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>function tmkLen() {
return Util.lenChoice($final.getSection('data').getSection('tmkHead').getValue() )
}
function keyCheckLen() {
return Util.keyCheckLen($final.getSection('data').getSection('tmkHead').getValue() )
} </script>
</packet>