Card (ICC)Format: nLength: 1
5F34

Application PAN Sequence Number

Tag ID
5F34
Format
n
Length (bytes)
1
Source
Card (ICC)

What it is

Application PAN Sequence Number distinguishes cards that share the same PAN (for example a primary and additional card, or a reissue). It is a single BCD byte and feeds the key-derivation of the card master key together with the PAN.

Where it appears

Read from the card record files; included in cryptogram key derivation and the authorisation message.

How tag 5F34 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 5F34 is a 2-byte, application class, primitive tag (tag number 52), so its value is plain data rather than nested TLV objects.

5F01011111Bits 8–7 = 01: application class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
3400110100Bit 8 = 0: last tag byte. Bits 7–1 = 52.

Length

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

Value format n

Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros. 1 byte hold 2 digits.

Who supplies it

The card supplies this value. The terminal reads it from the card’s responses during application selection, GET PROCESSING OPTIONS, READ RECORD or GENERATE AC, depending on where the issuer personalised it.

Specification reference

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

Example values

01Sequence number 01