Beispiel #1
0
        /// <summary>
        /// Issues a select Application command
        /// </summary>
        public void SelectApplication()
        {
            //_reader.Reconnect(SCardShareMode.Exclusive, SCardProtocol.Any, SCardReaderDisposition.Eject);
            CommandApdu apdu = new CommandApdu(IsoCase.Case4Short, _reader.ActiveProtocol)
            {
                CLA         = new ClassByte(ClaHighPart.Iso0x, SecureMessagingFormat.None, 0),
                Instruction = InstructionCode.SelectFile,
                P1          = 0x04,
                P2          = 00,
                Data        = AID
            };

            var res = _reader.TransmitWithLog(apdu);
        }