简体   繁体   English

ISO-7816-4 第 5 节文档表 9 中的“x”、“-”和“0”有什么区别

[英]What is the difference between "x", "-" and "0" in Table 9 of the ISO-7816-4 Section 5 documentation

I'm going through the ISO-7816 documentation and having trouble interpreting the CLA scheme under section 5.4.1, Table 9:我正在阅读ISO-7816 文档,但无法解释第 5.4.1 节表 9 下的 CLA 方案:

b4 b3 b2 b1 b4 b3 b2 b1 Meaning意义
xx - - xx - - Secure messaging (SM) Format安全消息 (SM) 格式
0 x - - 0 × - - No SM or SM not according to 1.6没有 SM 或 SM 不符合 1.6
0 0 - - 0 0 - - No SM or no SM indication无 SM 或无 SM 指示
0 1 - - 0 1 - - Proprietary SM format专有 SM 格式

What I understand so far is that if CLA = 8X, then the above nibble represents the various patterns that "X" can take on.到目前为止我的理解是,如果 CLA = 8X,那么上面的半字节代表“X”可以呈现的各种模式。 What do the symbols "x" (lowercase) and "-" imply in terms of the value of the bit at that position?就 position 的位值而言,符号“x”(小写)和“-”表示什么? More concretely, what would a CLA of "80" mean?更具体地说,“80”的 CLA 意味着什么? How is 0000 different from xxxx or ----? 0000 与 xxxx 或 ---- 有何不同?

More concretely, what would a CLA of "80" mean?更具体地说,“80”的 CLA 意味着什么?

CLA=80 corresponds to the proprietary class, because "Bit b8 set to 1 indicates the proprietary class". CLA=80 对应专有类 class,因为“bit b8 设置为 1 表示专有类”。 Table in section 5.4.1 specifies interindustry class, ie where bit 8 set to 0. 5.4.1 节中的表指定行业间 class,即第 8 位设置为 0。

What do the symbols "x" (lowercase) and "-" imply in terms of the value of the bit at that position?就 position 的位值而言,符号“x”(小写)和“-”表示什么?

You can treat mark 'x' as wildchar (any value), mark '-' as "bit is not used in this case", and 0 and 1 as exact values for bit place.您可以将标记“x”视为通配符(任何值),将“-”标记为“在这种情况下不使用位”,并将 0 和 1 作为位位置的精确值。 So, xx-- is just a bit mask.所以,xx-- 只是一个位掩码。 It tells that bit 4 and bit 3 indicate what SM format is used int the command and bit 2 and bit 1 are used for something different.它告诉第 4 位和第 3 位指示命令中使用的 SM 格式,第 2 位和第 1 位用于不同的内容。
0x-- can be 00-- or 01--. 0x-- 可以是 00-- 或 01--。

Bits 2 and 1 are described with an other line of the table.位 2 和 1 在表的另一行中描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM