namespace PixelSecurity.Core.Encryption
{

	// [TypeInfo RVA: 0x0]
	public class SHA1 : Object
	{
		// RVA: 0x32B15D4 VA: 0x781899C5D4
		public string EncodeString(string plane);
		/*
		 *   undefined *puVar1;
		 *   long *plVar2;
		 *   long *plVar3;
		 *   void *pvVar4;
		 *   void *value;
		 *   undefined8 *puVar5;
		 *   ulong uVar6;
		 *   long lVar7;
		 *   int *piVar8;
		 *   ulong uVar9;
		 *   undefined1 auStack_3c [4];
		 *   long *plStack_38;
		 *
		 *   puVar1 = PTR_DAT_070c6888;
		 *   if ((bRam000000000754afa7 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_IDisposable_6FC11D0);
		 *     func_0x031fdc8c(PTR_DAT_070c6888);
		 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_StringBuilder_6FC2160);
		 *     func_0x031fdc8c(PTR_DAT_070c6838);
		 *     bRam000000000754afa7 = 1;
		 *   }
		 *   plStack_38 = null;
		 *   auStack_3c[0] = 0;
		 *   plVar2 = (long *)func_0x031fdf24(*(undefined8 *)puVar1);
		 *   SHA1Managed..ctor(plVar2);
		 *   plStack_38 = plVar2;
		 *   plVar3 = System.Text.Encoding.get_UTF8();
		 *   if (plVar3 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   pvVar4 = (void *)(**(code **)(*plVar3 + 0x268))(plVar3,plane,*(undefined8 *)(*plVar3 + 0x270));
		 *   if (plVar2 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   pvVar4 = System.Security.Cryptography.HashAlgorithm.ComputeHash(plVar2,pvVar4);
		 *   if (pvVar4 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   plVar2 = (long *)func_0x031fdf24(*(undefined8 *)typeinfo_ptr_mscorlib_StringBuilder_6FC2160);
		 *   System.Text.StringBuilder..ctor(plVar2,*(int *)((long)pvVar4 + 0x18) << 1);
		 *   puVar1 = PTR_DAT_070c6838;
		 *   if ((int)*(ulong *)((long)pvVar4 + 0x18) < 1) {
		 *     if (plVar2 == null) {
		 *       IL2CPP.ThrowNullReferenceException();
		 *     }
		 *   }
		 *   else {
		 *     uVar9 = 0;
		 *     uVar6 = *(ulong *)((long)pvVar4 + 0x18) & 0xffffffff;
		 *     do {
		 *       if (uVar6 <= uVar9) {
		 *         IL2CPP.ThrowIndexOutOfRangeException();
		 *       }
		 *       auStack_3c[0] = *(undefined1 *)((long)pvVar4 + uVar9 + 0x20);
		 *       value = System.Byte.ToString(auStack_3c,*(void **)puVar1);
		 *       if (plVar2 == null) {
		 *         IL2CPP.ThrowNullReferenceException();
		 *       }
		 *       System.Text.StringBuilder.Append(plVar2,value);
		 *       uVar6 = (ulong)*(uint *)((long)pvVar4 + 0x18);
		 *       uVar9 = uVar9 + 1;
		 *     } while ((long)uVar9 < (long)(int)*(uint *)((long)pvVar4 + 0x18));
		 *   }
		 *   pvVar4 = (void *)(**(code **)(*plVar2 + 0x168))(plVar2,*(undefined8 *)(*plVar2 + 0x170));
		 *   plVar2 = plStack_38;
		 *   if (plStack_38 != null) {
		 *     lVar7 = *plStack_38;
		 *     uVar9 = (ulong)*(ushort *)(lVar7 + 0x12e);
		 *     if (uVar9 != 0) {
		 *       piVar8 = (int *)(*(long *)(lVar7 + 0xb0) + 8);
		 *       do {
		 *         if (*(long *)(piVar8 + -2) == *(long *)typeinfo_ptr_mscorlib_IDisposable_6FC11D0) {
		 *           puVar5 = (undefined8 *)(lVar7 + (long)*piVar8 * 0x10 + 0x138);
		 *           goto LAB_033b17a0;
		 *         }
		 *         uVar9 = uVar9 - 1;
		 *         piVar8 = piVar8 + 4;
		 *       } while (uVar9 != 0);
		 *     }
		 *     puVar5 = (undefined8 *)
		 *              func_0x03237558(plStack_38,*(long *)typeinfo_ptr_mscorlib_IDisposable_6FC11D0,0);
		 * LAB_033b17a0:
		 *     (*(code *)*puVar5)(plVar2,puVar5[1]);
		 *   }
		 *   return pvVar4;
		 */
		// RVA: 0x32B1858 VA: 0x781899C858
		public System.Byte[] EncodeBinary(System.Byte[] src);
		/*
		 *   undefined *puVar1;
		 *   void *pvVar2;
		 *   undefined8 *puVar3;
		 *   void **ppvVar4;
		 *   long lVar5;
		 *   ulong uVar6;
		 *   int *piVar7;
		 *   long lVar8;
		 *   long *plVar9;
		 *   undefined1 auVar10 [12];
		 *   long lStack_38;
		 *   void **ppvStack_30;
		 *   void *pvStack_28;
		 *
		 *   puVar1 = PTR_DAT_070c6888;
		 *   if ((bRam000000000754afa8 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_IDisposable_6FC11D0);
		 *     func_0x031fdc8c(PTR_DAT_070c6888);
		 *     bRam000000000754afa8 = 1;
		 *   }
		 *   pvStack_28 = null;
		 *   pvVar2 = (void *)func_0x031fdf24(*(undefined8 *)puVar1);
		 *   SHA1Managed..ctor(pvVar2);
		 *   ppvStack_30 = &pvStack_28;
		 *   lStack_38 = 0;
		 *   pvStack_28 = pvVar2;
		 *   if (pvVar2 == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   pvVar2 = System.Security.Cryptography.HashAlgorithm.ComputeHash(pvVar2,src);
		 *   lVar8 = 0;
		 *   ppvVar4 = &pvStack_28;
		 *   do {
		 *     plVar9 = *ppvVar4;
		 *     if (plVar9 != null) {
		 *       lVar5 = *plVar9;
		 *       uVar6 = (ulong)*(ushort *)(lVar5 + 0x12e);
		 *       if (uVar6 != 0) {
		 *         piVar7 = (int *)(*(long *)(lVar5 + 0xb0) + 8);
		 *         do {
		 *           if (*(long *)(piVar7 + -2) == *(long *)typeinfo_ptr_mscorlib_IDisposable_6FC11D0) {
		 *             puVar3 = (undefined8 *)(lVar5 + (long)*piVar7 * 0x10 + 0x138);
		 *             goto LAB_033b193c;
		 *           }
		 *           uVar6 = uVar6 - 1;
		 *           piVar7 = piVar7 + 4;
		 *         } while (uVar6 != 0);
		 *       }
		 *       puVar3 = (undefined8 *)
		 *                func_0x03237558(plVar9,*(long *)typeinfo_ptr_mscorlib_IDisposable_6FC11D0,0);
		 * LAB_033b193c:
		 *       (*(code *)*puVar3)(plVar9,puVar3[1]);
		 *     }
		 *     if (lVar8 == 0) {
		 *       return pvVar2;
		 *     }
		 *     auVar10 = func_0x031fdf2c(lVar8);
		 *     if (auVar10._8_4_ != 1) {
		 *       func_0x02d70dc0(&lStack_38);
		 *       func_0x032ed34c(auVar10._0_8_);
		 *       pvVar2 = (void *)func_0x02d70c70();
		 *       return pvVar2;
		 *     }
		 *     plVar9 = (long *)func_0x06cb38e0(auVar10._0_8_);
		 *     lVar8 = *plVar9;
		 *     lStack_38 = lVar8;
		 *     func_0x06cb38f0();
		 *     pvVar2 = null;
		 *     ppvVar4 = ppvStack_30;
		 *   } while( true );
		 */
		// RVA: 0x32B19B4 VA: 0x781899C9B4
		public void .ctor();
		/*
		 *   return;
		 */
		// RVA: 0x32B19BC VA: 0x781899C9BC
		public string DecodeString(string encrypted);
		/*
		 *   void *this_00;
		 *   void *message;
		 *   undefined8 uVar1;
		 *
		 *   func_0x031fdca0(typeinfo_ptr_mscorlib_Exception_6FC0B50);
		 *   this_00 = (void *)func_0x031fdf24();
		 *   message = (void *)func_0x031fdca0(PTR_DAT_070c6840);
		 *   System.Exception..ctor(this_00,message);
		 *   uVar1 = func_0x031fdca0(PTR_DAT_070c6890);
		 *   IL2CPP.ThrowManagedException();
		 */
		// RVA: 0x32B1A08 VA: 0x781899CA08
		public System.Byte[] DecodeBinary(System.Byte[] src);
		/*
		 *   void *this_00;
		 *   void *message;
		 *   undefined8 uVar1;
		 *
		 *   func_0x031fdca0(typeinfo_ptr_mscorlib_Exception_6FC0B50);
		 *   this_00 = (void *)func_0x031fdf24();
		 *   message = (void *)func_0x031fdca0(PTR_DAT_070c6840);
		 *   System.Exception..ctor(this_00,message);
		 *   uVar1 = func_0x031fdca0(PTR_DAT_070c6898);
		 *   IL2CPP.ThrowManagedException();
		 */
	}
}
