mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
fix(pcsc): add comment explaining the use of a 256 bytes buffer
This commit is contained in:
@@ -1312,6 +1312,8 @@ static int CmdPCSC(const char *Cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
// ISO 7816-3 specifies that ATRs can be 2 to 33 bytes long
|
||||
// but some custom cards may support up to 256 bytes long ATRs
|
||||
uint8_t res[2 + 256] = {0};
|
||||
res[1] = atrLen;
|
||||
memcpy(res + 2, atr, atrLen);
|
||||
|
||||
Reference in New Issue
Block a user