コード例 #1
0
        public bool AuthenticateBlock(int blockNumber, int keyType = MifareParam.KEY_TYPE_A, int keyNumber = 0)
        {
            AuthenticateBlockCommand authBlockCmd = new AuthenticateBlockCommand((byte) blockNumber, (byte)keyType, (byte) keyNumber);
            lastApduResponse = apduPlayer.ExecuteApduCommand(authBlockCmd);

            return lastApduResponse.Status == MifareStatus.SUCCESS;
        }
コード例 #2
0
        public bool AuthenticateBlock(int blockNumber, int keyType = MifareParam.KEY_TYPE_A, int keyNumber = 0)
        {
            AuthenticateBlockCommand authBlockCmd = new AuthenticateBlockCommand((byte)blockNumber, (byte)keyType, (byte)keyNumber);

            lastApduResponse = apduPlayer.ExecuteApduCommand(authBlockCmd);

            return(lastApduResponse.Status == MifareStatus.SUCCESS);
        }