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

127 lines
3.5 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>YA</hex>
</command>
<data extend="data">
<mainKey cn="主密钥">
LMK下加密的密钥。
K: 指示密钥存储在用户密钥存储区
1A: Z, X, U, Y, T. 用于密钥及K索引模式下的密钥标识
27位的索引号16位机构号+3位密钥类型+8位密钥索引号
</mainKey>
<keyType len="3" cn="密钥类型">
<options>
<option cn="DEK">
<hex>010</hex>
</option>
<option cn="TAK">
<hex>003</hex>
</option>
</options>
</keyType>
<disperseNum len="1" cn="分散次数">指定对根密钥分散的次数1-3次</disperseNum>
<data cn="分散数据">分散因子是 16/32/48</data>
<disperseAlg len="1" cn="分散算法">
<options>
<option cn="DES">
<hex>1</hex>
</option>
<option cn="3DES">
<hex>2</hex>
</option>
<option cn="IDEA">
<hex>3</hex>
</option>
<option cn="SM1">
<hex>4</hex>
</option>
<option cn="AES">
<hex>5</hex>
</option>
<option cn="SM4">
<hex>6</hex>
</option>
</options>
</disperseAlg>
<keyCheckType len="1" cn="密钥校验值类型">
可选项。密钥校验值计算方式。
<options>
<option cn="KCV 向后兼容">
<hex>0</hex>
</option>
<option cn="KCV 6H">
<hex>1</hex>
</option>
</options>
</keyCheckType>
<businessKey len="1" cn="业务标识" required="false">
取值 N可选当选定此标识时表示密钥加密方案采用默认方式
</businessKey>
<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>YB</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="LMK错误报告给管理员">
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="无效的密钥类型">
<hex>28</hex>
</option>
<option cn="数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<lmk len="33" cn="[密钥]lmk">
被保护密钥lmk加密输出
</lmk>
<keySign len="16" cn="密钥校验值">
密钥校验值
</keySign>
</data>
</res>
<script> </script>
</packet>