I am able to connect to the card and now I need to verify the PIN but I´m not able to figure out which code should I use to perform the verification
// 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);
It is a smart card that uses an 7 digits PIN. It is always 7 digits.
**Example:**
{CLA, INS, P1, P2, Lc, b1, b2, b3, b4, b5, b6, b7}
Here I have the basic CLA
, INS
, P1
, P2
, LC
bytes.
Should I set + 3 bytes or 6 bytes for the PIN of 7 digits
And shall be the actual PIN or just a 0xFF value
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...