Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/electronic-id.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ constexpr auto constructor(const Reader& /*reader*/)

// Supported cards.
const std::map<byte_vector, ElectronicIDConstructor, VectorComparator> SUPPORTED_ATRS {
// EstEID Idemia v1.0
// EstEID Idemia Cosmo 8.1/8.2
{{0x3b, 0xdb, 0x96, 0x00, 0x80, 0xb1, 0xfe, 0x45, 0x1f, 0x83, 0x00,
0x12, 0x23, 0x3f, 0x53, 0x65, 0x49, 0x44, 0x0f, 0x90, 0x00, 0xf1},
constructor<EstEIDIDEMIAV1>},
// EstEID Idemia v2.0
// EstEID Idemia Cosmo X
{{0x3b, 0xdc, 0x96, 0x00, 0x80, 0xb1, 0xfe, 0x45, 0x1f, 0x83, 0x00, 0x12,
0x23, 0x3f, 0x54, 0x65, 0x49, 0x44, 0x32, 0x0f, 0x90, 0x00, 0xc3},
constructor<EstEIDIDEMIAV1>},
Expand All @@ -69,10 +69,14 @@ const std::map<byte_vector, ElectronicIDConstructor, VectorComparator> SUPPORTED
{{0x3B, 0x7F, 0x96, 0x00, 0x00, 0x80, 0x31, 0xB8, 0x65, 0xB0,
0x85, 0x04, 0x02, 0x1B, 0x12, 0x00, 0xF6, 0x82, 0x90, 0x00},
constructor<FinEIDv3>},
// LatEID Idemia v2.0
// LatEID Idemia Cosmo 8.1/8.2
{{0x3b, 0xdb, 0x96, 0x00, 0x80, 0xb1, 0xfe, 0x45, 0x1f, 0x83, 0x00,
0x12, 0x42, 0x8f, 0x53, 0x65, 0x49, 0x44, 0x0f, 0x90, 0x00, 0x20},
constructor<LatEIDIDEMIAV2>},
// LatEID Idemia Cosmo X
{{0x3b, 0xdc, 0x96, 0x00, 0x80, 0xb1, 0xfe, 0x45, 0x1f, 0x83, 0x00, 0x12,
0x42, 0x8f, 0x54, 0x65, 0x49, 0x44, 0x32, 0x0f, 0x90, 0x00, 0x12},
constructor<LatEIDIDEMIAV2>},
// LitEID
{{0x3B, 0x9D, 0x18, 0x81, 0x31, 0xFC, 0x35, 0x80, 0x31, 0xC0, 0x69,
0x4D, 0x54, 0x43, 0x4F, 0x53, 0x73, 0x02, 0x05, 0x05, 0xD3},
Expand Down
2 changes: 1 addition & 1 deletion src/electronic-ids/pcsc/LatEIDIDEMIAv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ byte_vector LatEIDIDEMIAV2::getCertificateImpl(const SmartCard::Session& session
auto info = readDCODInfo(session, CERT_FILE_REF,
type.isAuthentication() ? data->authCache : data->signCache);
if (TLV id = info.find(0x30)[0xA1][0x30][0x30][0x04]) {
return readFile(session, CommandApdu::selectEF(0x02, {id.begin, id.end}));
return readFile(session, CommandApdu::selectEF(0x02, {id.begin, id.end}), 0xC0);
}
THROW(SmartCardError, "EF.CD reference not found");
}
Expand Down
Loading
Loading