Skip to content

Commit

Permalink
Fixed ISO7816 ATR parsing test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
kingofpayne committed Jan 25, 2024
1 parent 1aabfe8 commit c3a0e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/tests/test_iso7816.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def test_parsing_ok():
"3bfd9600008131204380318065b0831148c883009000",
"3bfd9600008131484280318065b0840100c883009000",
"3fff9500ff918171a04700444e4153503031312052657642",
"3fff9500ff918171fe4700444e41535032343120447368"]
"3fff9500ff918171fe4700444e41535032343120447368",
"3b6f00008031e06b082e0502b9555555",
"3b781400000073c8400000",
"3b9f978131fe458065544312210831c073f621808105"]

# List of invalid ATR with too much bytes
badlist_extra = [
Expand Down Expand Up @@ -106,7 +109,8 @@ def test_parsing_ok():
"3bf99100ff918171fc40000a095161900058c290d2",
"3bfe9100ff918171fe40004138002180818066b00701017707b7",
"3bff0000ff8131fe458025a000000056575343363530000000",
"3bff9500008031fe4380318067b0850201f3a3138301f83bff"]
"3bff9500008031fe4380318067b0850201f3a3138301f83bff",
"3be6000080318066b1a30401110b83"]

atrs = []
for atr_pattern, _ in tab:
Expand Down

0 comments on commit c3a0e73

Please sign in to comment.