как использовать смарт-карту с помощью PCS C -Sharp и APDU Command - PullRequest
0 голосов
/ 22 апреля 2020
Good day everyone, I would like to ask on how to write in Smartcard using APDU Command . I follow the examples here in https://github.com/danm-de/pcsc-sharp/blob/master/Examples/Transmit/Program.cs
but here :-  

     var apdu = new CommandApdu(IsoCase.Case2Short, rfidReader.ActiveProtocol)
                       {
                            CLA = 0xFF,
                            Instruction = InstructionCode.GetData,
                            P1 = 0x00,
                            P2 = 0x00,
                            Le = 0  // We don't know the ID tag size
                        };


   var apdu = new CommandApdu(IsoCase.Case4Extended, rfidReader.ActiveProtocol)
                    {
                        CLA = 0xFF,
                        Instruction = InstructionCode.Verify,
                        P1 = 0x00,
                        P2 = 0x00,
                        Le = 00 // PIN string lenght = 4 
                    };

этот код работает, когда я меняю * IsoCase.Case2Short * на * IsoCase.Case4Extended *, тогда я сталкиваюсь с проблемой, у любого приятеля есть идея

...