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); } }
private static extern int worm_user_login(IntPtr worm_context, TseUserId id, byte[] pin, int pinLength, IntPtr remainingRetries);