Skip to content

Commit 6db171b

Browse files
hardeningJakuje
authored andcommitted
idprime: fix pin padding for SafeNet eToken 5100 [eToken 5110 SC]
As discussed in OpenSC#3488 , it seems like my card with ATR 3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:85:59:56:fb:12:01:78:82:90:00:88 needs to be identified as SC_CARD_TYPE_IDPRIME_940 to have padding for the pin.
1 parent be548cd commit 6db171b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/libopensc/card-idprime.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static const struct sc_atr_table idprime_atrs[] = {
7171
* 3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:84:65:66:fb:12:01:78:82:90:00:85 metsma
7272
*/
7373
{ "3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:84:65:66:fb:12:01:78:82:90:00:85",
74-
"ff:ff:00:ff:ff:ff:ff:00:ff:ff:ff:ff:ff:ff:00:00:00:00:ff:ff:ff:ff:ff:ff:00",
74+
"ff:ff:00:ff:ff:ff:ff:00:ff:ff:ff:ff:ff:ff:ff:00:00:00:ff:ff:ff:ff:ff:ff:00",
7575
"based Gemalto IDPrime 930 (eToken 5110+ FIPS)",
7676
SC_CARD_TYPE_IDPRIME_930_PLUS, 0, NULL },
7777
/* known ATR for IDPrime 940: Placing in front of the 940 as its mask overlaps this one!
@@ -97,9 +97,10 @@ static const struct sc_atr_table idprime_atrs[] = {
9797
SC_CARD_TYPE_IDPRIME_940, 0, NULL },
9898
/* Known ATRs for IDPrime 940 (eToken 5110)
9999
* 3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:85:59:56:fb:12:0f:fe:82:90:00:00 metsma, jurajsarinay
100+
* 3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:85:59:56:fb:12:01:78:82:90:00:88 hardening
100101
*/
101102
{ "3b:ff:96:00:00:81:31:fe:43:80:31:80:65:b0:85:59:56:fb:12:0f:fe:82:90:00:00",
102-
"ff:ff:00:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:ff:ff:ff:ff:ff:ff:00",
103+
"ff:ff:00:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:ff:f0:00:ff:ff:ff:00",
103104
"Gemalto IDPrime MD 940 (eToken 5110)",
104105
SC_CARD_TYPE_IDPRIME_940, 0, NULL },
105106
{ "3b:7f:96:00:00:80:31:80:65:b0:84:41:3d:f6:12:0f:fe:82:90:00",

0 commit comments

Comments
 (0)