Esempio n. 1
0
        //getUid

        public int SmartX1GetUid(int keyHandle, StringBuilder uid)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1GetUid(keyHandle, uid));
            }
            else
            {
                return(SmartX1_X64.SmartX1GetUid(keyHandle, uid));
            }
        }
Esempio n. 2
0
        //ReadStorage

        public int SmartX1ReadStorage(int keyHandle, int startAddr, int length, byte[] pBuffer)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1ReadStorage(keyHandle, startAddr, length, pBuffer));
            }
            else
            {
                return(SmartX1_X64.SmartX1ReadStorage(keyHandle, startAddr, length, pBuffer));
            }
        }
Esempio n. 3
0
        //close


        public int SmartX1Close(int keyHandle)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1Close(keyHandle));
            }
            else
            {
                return(SmartX1_X64.SmartX1Close(keyHandle));
            }
        }
Esempio n. 4
0
        //checkExist


        public int SmartX1CheckExist(int keyHandle)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1CheckExist(keyHandle));
            }
            else
            {
                return(SmartX1_X64.SmartX1CheckExist(keyHandle));
            }
        }
Esempio n. 5
0
 public string TridesDecEncrypt(byte[] data, string key, Encoding encoding)
 {
     if (_is64ibt)
     {
         return(SmartX1_X86.TridesDecEncrypt(data, key, encoding));
     }
     else
     {
         return(SmartX1_X64.TridesDecEncrypt(data, key, encoding));
     }
 }
Esempio n. 6
0
        //open

        public int SmartX1Open(int keyHandle, int uPin1, int uPin2, int uPin3, int uPin4)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1Open(keyHandle, uPin1, uPin2, uPin3, uPin4));
            }
            else
            {
                return(SmartX1_X64.SmartX1Open(keyHandle, uPin1, uPin2, uPin3, uPin4));
            }
        }
Esempio n. 7
0
 public int SmartX1PageGetProperty(int keyHandle, int pageNo, int propId, int[] propValue)
 {
     if (_is64ibt)
     {
         return(SmartX1_X86.SmartX1PageGetProperty(keyHandle, pageNo, propId, propValue));
     }
     else
     {
         return(SmartX1_X64.SmartX1PageGetProperty(keyHandle, pageNo, propId, propValue));
     }
 }
Esempio n. 8
0
 public int SmartX1GetSoftVersion(int keyHandle, int[] version)
 {
     if (_is64ibt)
     {
         return(SmartX1_X86.SmartX1GetSoftVersion(keyHandle, version));
     }
     else
     {
         return(SmartX1_X64.SmartX1GetSoftVersion(keyHandle, version));
     }
 }
Esempio n. 9
0
        //desDecrypt

        public int SmartX1TriDesDecrypt(int keyHandle, int buffSize, byte[] pBuffer)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1TriDesDecrypt(keyHandle, buffSize, pBuffer));
            }
            else
            {
                return(SmartX1_X64.SmartX1TriDesDecrypt(keyHandle, buffSize, pBuffer));
            }
        }
Esempio n. 10
0
        //led

        public int SmartX1Led(int keyHandle, int state)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1Led(keyHandle, state));
            }
            else
            {
                return(SmartX1_X64.SmartX1Led(keyHandle, state));
            }
        }
Esempio n. 11
0
        //WriteMem

        public int SmartX1WriteMem(int keyHandle, int start, int length, byte[] pBuffer)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1WriteMem(keyHandle, start, length, pBuffer));
            }
            else
            {
                return(SmartX1_X64.SmartX1WriteMem(keyHandle, start, length, pBuffer));
            }
        }
Esempio n. 12
0
 public int SmartX1Find(string appID, int[] keyHandles, int[] keyNumber)
 {
     if (_is64ibt)
     {
         return(SmartX1_X86.SmartX1Find(appID, keyHandles, keyNumber));
     }
     else
     {
         return(SmartX1_X64.SmartX1Find(appID, keyHandles, keyNumber));
     }
 }
Esempio n. 13
0
        //WritePage

        public int SmartX1WritePage(int keyHandle, int pageNo, int startAddr, int length, byte[] pBuffer)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1WritePage(keyHandle, pageNo, startAddr, length, pBuffer));
            }
            else
            {
                return(SmartX1_X64.SmartX1WritePage(keyHandle, pageNo, startAddr, length, pBuffer));
            }
        }
Esempio n. 14
0
        //PageLogout

        public int SmartX1PageLogout(int keyHandle, int pageNo)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1PageLogout(keyHandle, pageNo));
            }
            else
            {
                return(SmartX1_X64.SmartX1PageLogout(keyHandle, pageNo));
            }
        }
Esempio n. 15
0
        //PageLogin

        public int SmartX1PageLogin(int keyHandle, int pageNo, byte[] password, int length)
        {
            if (_is64ibt)
            {
                return(SmartX1_X86.SmartX1PageLogin(keyHandle, pageNo, password, length));
            }
            else
            {
                return(SmartX1_X64.SmartX1PageLogin(keyHandle, pageNo, password, length));
            }
        }