From c3a0e73f3898b52f2d3d1b14ca7e4dddb7868d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20H=C3=A9riveaux?= Date: Thu, 25 Jan 2024 10:42:13 +0100 Subject: [PATCH] Fixed ISO7816 ATR parsing test vectors --- api/tests/test_iso7816.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/tests/test_iso7816.py b/api/tests/test_iso7816.py index 61e6f47..1b2a6fb 100755 --- a/api/tests/test_iso7816.py +++ b/api/tests/test_iso7816.py @@ -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 = [ @@ -106,7 +109,8 @@ def test_parsing_ok(): "3bf99100ff918171fc40000a095161900058c290d2", "3bfe9100ff918171fe40004138002180818066b00701017707b7", "3bff0000ff8131fe458025a000000056575343363530000000", - "3bff9500008031fe4380318067b0850201f3a3138301f83bff"] + "3bff9500008031fe4380318067b0850201f3a3138301f83bff", + "3be6000080318066b1a30401110b83"] atrs = [] for atr_pattern, _ in tab: