Esempio n. 1
0
        public void Login(TseUserId id, byte[] PIN)
        {
            int result = worm_user_login(tse_context, id, PIN, PIN.Length, IntPtr.Zero);

            if (result != 0)
            {
                throw new Exception("Failed to log in, error: " + result);
            }
        }
Esempio n. 2
0
 private static extern int worm_user_login(IntPtr worm_context, TseUserId id, byte[] pin, int pinLength, IntPtr remainingRetries);