From 1a88fd806689cae8eff4aa61c98777c57467c131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Wed, 15 May 2019 00:23:21 +0200 Subject: [PATCH] use simplest ATR this is the shortest and simplest ATR possible according to the ISO 7816-3 spec. it does not offer any non-default parameters (F, D, WI, ...) Change-Id: I4ff41b5120bcadca652296f9d3691f7606be2bd2 --- firmware/libcommon/source/card_emu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c index b7d0e1f6..ab154b4d 100644 --- a/firmware/libcommon/source/card_emu.c +++ b/firmware/libcommon/source/card_emu.c @@ -1121,8 +1121,8 @@ void tc_etu_wtime_expired(void *handle) } } -/* shortest ATR found in smartcard_list.txt */ -static const uint8_t default_atr[] = { 0x3B, 0x02, 0x14, 0x50 }; +/* shortest ATR possible (uses default speed and no options) */ +static const uint8_t default_atr[] = { 0x3B, 0x00 }; static struct card_handle card_handles[NUM_SLOTS];