TerminalFormat: bLength: var
9F5B

Issuer Script Results

Tag ID
9F5B
Format
b
Length (bytes)
var
Source
Terminal

What it is

Outcome of each issuer script command processed by the card.

How tag 9F5B is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F5B is a 2-byte, context-specific class, primitive tag (tag number 91), 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.
5B01011011Bit 8 = 0: last tag byte. Bits 7–1 = 91.

Length

The length varies, so read it from the length field: one byte for values up to 127 bytes, 81 plus one byte up to 255, 82 plus two bytes beyond that.

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.

Specification reference

Defined in: Scheme / terminal-defined (not in EMV 4.4 Book 3 Annex A1)