Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit a42c320

Browse files
committed
Make Issuer Authentication Flags a named tag
1 parent db53e65 commit a42c320

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

emv/card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def generate_cap_value(self, pin, challenge=None, value=None):
184184
psn = None
185185

186186
# If the third bit of Issuer Authentication Flags is set then use the PAN Sequence Number
187-
if app_data[(0x9F, 0x55)][0] & 0x40:
187+
if Tag.IAF in app_data and app_data[Tag.IAF][0] & 0x40:
188188
psn = app_data[Tag.PAN_SN]
189189

190190
return get_cap_value(resp, app_data[Tag.IPB], psn)

emv/protocol/data_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Parse(Enum):
166166
((0x9F, 0x4D), "Log Entry", Parse.BYTES, None),
167167
((0x9F, 0x4E), "Merchant Name and Location", Parse.BYTES, None),
168168
((0x9F, 0x4F), "Log Format", Parse.BYTES, None),
169-
((0x9F, 0x55), "Issuer Authentication Flags", Parse.BYTES, None),
169+
((0x9F, 0x55), "Issuer Authentication Flags", Parse.BYTES, "IAF"),
170170
((0x9F, 0x56), "Issuer Proprietary Bitmap", Parse.BYTES, "IPB"),
171171
(
172172
(0x9F, 0x5C),

0 commit comments

Comments
 (0)