I can connect to the card, and now I need to check the PIN code, but I canβt determine which code to use to perform the check
// Verify PIN //HERE IS WHAT IΒ΄M NOT SURE WHAT TO USE - Just an Example byte[] pin = new byte[] { 0x31, 0x32, 0x33, 0x34, 0xFF, 0xFF, 0xFF, 0xFF }; APDUParam apduParam = new APDUParam(); apduParam.Data = pin; apduVerifyCHV.Update(apduParam); apduResp = iCard.Transmit(apduVerifyCHV);
This is a smart card that uses a 7-digit PIN. It is always 7 digits.
**Example:** {CLA, INS, P1, P2, Lc, b1, b2, b3, b4, b5, b6, b7}
Here I have the basic bytes CLA , INS , P1 , P2 , LC . Should I set + 3 bytes or 6 bytes for a 7-digit PIN code And should there be an actual PIN code or just the value 0xFF
Ex. {CLA, INS, P1, P2, Lc, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} +7 Bytes
in the spec I found examples for 8 digits min and max and min 4 and max 12 bytes ...