limousyf / paytools

1 stars 0 forks source link

Add CSU decoding #1

Closed limousyf closed 7 years ago

limousyf commented 7 years ago

From emvbot: limousyf/emvbot#49

Card Status Update Page 292 of VIS 1.6

limousyf commented 7 years ago

Byte 1: bit 8: 1b = Proprietary Authentication Data included bits 7-5: RFU (000b) bits 4-1: PIN Try Counter Byte 2: bit 8: 1b = Issuer approves online transaction bit 7: 1b = Card block bit 6: 1b = Application block bit 5: 1b = Update PIN Try Counter bit 4: 1b = Set Go Online on Next Transaction bit 3: 1b = CSU generated by proxy for the issuer Note: When Byte 2 bit 3 is set to 1b, issuers can use the ADA (instead of the following two bits) to control what processing occurs for counter updates. bits 2–1: Update Counters 00b = Do not update velocitychecking counters 01b = Set velocity-checking counters to Upper Limits 10b = Reset velocity-checking counters to Zero 11b = Add transaction to velocitychecking counters Byte 3: RFU ('00') Byte 4: Issuer-Discretionary (or '00')