﻿// Decompiled with JetBrains decompiler
// Type: InvokedCommon.Cryptography.SafeComparison
// Assembly: InvokedCommon, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A935EE8A-7FFF-4BAB-94FD-31AEC4036FB9
// Assembly location: C:\Users\ian\Downloads\Telegram Desktop\fein\InvokedCommon.dll

using System.Runtime.CompilerServices;


namespace InvokedCommon.Cryptography
{
	public class SafeComparison
	{
		[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
		public static bool AreEqual(byte[] a1, byte[] a2)
		{
			bool flag = true;
			for (int index = 0; index < a1.Length; ++index)
			{
				if ((int) a1[index] != (int) a2[index])
					flag = false;
			}
			return flag;
		}
	}
}
