TerminalFormat: bLength: 1
9F22

CA Public Key Index — Terminal

Tag ID
9F22
Format
b
Length (bytes)
1
Source
Terminal

What it is

Index of the CA public key stored in the terminal for the application RID.

How tag 9F22 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F22 is a 2-byte, context-specific class, primitive tag (tag number 34), so its value is plain data rather than nested TLV objects.

9F10011111Bits 8–7 = 10: context-specific class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
2200100010Bit 8 = 0: last tag byte. Bits 7–1 = 34.

Length

The value is always 1 byte, so the length field is 01. A complete 9F22 object starts 9F 22 01 and is 4 bytes long in all.

Value format b

Format b is binary: the bits mean what this tag defines, with no padding or character conversion.

Who supplies it

The terminal supplies this value. A card that needs it lists the tag in a data object list (PDOL, CDOL1, CDOL2 or DDOL), and the terminal places the value, at the length the card asked for, in the matching command. In a DOL, 9F22 appears as 9F 22 01: the tag followed by the length the card wants.

Specification reference

Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary