TerminalFormat: bLength: 4
9F37

Unpredictable Number

Tag ID
9F37
Format
b
Length (bytes)
4
Source
Terminal

What it is

The Unpredictable Number (UN) is a 4-byte random value the terminal generates for each transaction and feeds into the cryptogram. It guarantees freshness: because the card signs over the UN, a captured ARQCApplication Request CryptogramThe cryptogram a card produces when it wants the transaction sent online to the issuer for approval.View in glossary → cannot be replayed for a different transaction.

Where it appears

Generated by the terminal; supplied to the card via CDOL1 for GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline)..

How tag 9F37 is encoded

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

Length

The value is always 4 bytes, so the length field is 04. A complete 9F37 object starts 9F 37 04 and is 7 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, 9F37 appears as 9F 37 04: 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

Example values

3F1A2B4CA random 4-byte unpredictable number