Skip to content
eli edited this page Oct 25, 2021 · 4 revisions

Trimet Hop Fastpass is smartcard ticketing system in Portland, Oregon. It's a DESFire system containing a single application 0xe010f2 with just 2 files: file 0 and file 1.

In addition to issuing physical cards, the agency also supports HCE in two flavours:

File 0

In bytes, big-endian

Start End Length Meaning
0 5 6 Constant "TRI1"
6 11 6 Constant 00 0d 10 00 00 00.
12 15 4 MFG serial number. Engraved on the card as MFG # at the bottom in small
16 26 11 Zero-filled
27 27 1 Constant 0x0d. Public-key selector?
28 95 68 ASN.1 DER-encoded pair of integers. Presumably (EC)DSA signature of first part of this file. Zero-padded

File 1

In bytes, big-endian

Start End Length Meaning
0 1 2 Constant 0101. Possibly ticket type
2 7 6 Zero-filled
8 11 4 Issue timestamp. Unix time
12 47 36 Zero-filled