示例#1
0
        // Token: 0x06000183 RID: 387 RVA: 0x00005BD8 File Offset: 0x00003DD8
        private bool isEncryptCard()
        {
            byte[] array = new byte[4];
            int    num   = 0;

            if (!RDIC100Reader.ATA_Access(0, 0, this.ADDR))
            {
                return(false);
            }
            RDIC100Reader.ATA_ReadCardRF32(array, ref num, this.ADDR);
            if (array[0] == 0 && array[1] == 8 && array[2] == 128 && array[3] == 232)
            {
                return(false);
            }
            this.pwd = base.getPassword(false);
            if (this.pwd == null)
            {
                return(false);
            }
            if (!RDIC100Reader.ATA_AccessPWD(0, 0, this.pwd, this.ADDR))
            {
                return(false);
            }
            RDIC100Reader.ATA_ReadCardRF32(array, ref num, this.ADDR);
            return(array[0] == 0 && array[1] == 8 && array[2] == 128 && array[3] == 56);
        }
示例#2
0
 // Token: 0x06000182 RID: 386 RVA: 0x00005BBA File Offset: 0x00003DBA
 public override short isReaderPlugs()
 {
     if (!this.initialized)
     {
         return(-1);
     }
     if (RDIC100Reader.ATA_Access(0, 1, this.ADDR))
     {
         return(0);
     }
     return(-1);
 }