Beispiel #1
0
 // Token: 0x06000873 RID: 2163 RVA: 0x000397DC File Offset: 0x000379DC
 public static byte[] vmethod_1475(byte[] byteDizi_0, byte[] byteDizi_1)
 {
     byte[] result;
     using (ICryptoTransform cryptoTransform = Class_223.gmethod_1473(byteDizi_1))
     {
         result = cryptoTransform.TransformFinalBlock(byteDizi_0, 0, byteDizi_0.Length);
     }
     return(result);
 }
Beispiel #2
0
 // Token: 0x0600086E RID: 2158 RVA: 0x00039690 File Offset: 0x00037890
 public static byte[] smethod_1470(byte[] byteDizi_0, byte[] byteDizi_1)
 {
     byte[] array = new byte[byteDizi_0.Length];
     using (ICryptoTransform cryptoTransform = Class_223.gmethod_1473(byteDizi_1))
     {
         for (int i = 0; i < byteDizi_0.Length; i += 16)
         {
             Array.Copy(Class_223.cmethod_1474(byteDizi_0.CopySubArray(16, i), cryptoTransform), 0, array, i, 16);
         }
     }
     return(array);
 }
Beispiel #3
0
 // Token: 0x060008F0 RID: 2288 RVA: 0x0003AE34 File Offset: 0x00039034
 private static string vmethod_1575(string str_0, byte[] byteDizi_0)
 {
     byte[] array  = str_0.ToBytes();
     byte[] array2 = new byte[16];
     for (int i = 0; i < array.Length; i++)
     {
         byte[] array3 = array2;
         int    num    = i % 16;
         array3[num] ^= array[i];
     }
     using (ICryptoTransform cryptoTransform = Class_223.gmethod_1473(byteDizi_0))
     {
         for (int j = 0; j < 16384; j++)
         {
             array2 = Class_223.cmethod_1474(array2, cryptoTransform);
         }
     }
     byte[] array4 = new byte[8];
     Array.Copy(array2, 0, array4, 0, 4);
     Array.Copy(array2, 8, array4, 4, 4);
     return(array4.ToBase64());
 }
Beispiel #4
0
 // Token: 0x0600099B RID: 2459 RVA: 0x0003C324 File Offset: 0x0003A524
 protected Class_249(Stream stream_, long sayıUınt_0, Class_249.NClass_0 arg_0, byte[] byteDizi_0, byte[] byteDizi_1)
 {
     if (stream_ == null)
     {
         throw new ArgumentNullException("stream");
     }
     if (byteDizi_0 == null || byteDizi_0.Length != 16)
     {
         throw new ArgumentException("Invalid fileKey");
     }
     if (byteDizi_1 == null || byteDizi_1.Length != 8)
     {
         throw new ArgumentException("Invalid Iv");
     }
     this.field_5 = stream_;
     this.field_2 = sayıUınt_0;
     this.field_6 = arg_0;
     this.field_0 = byteDizi_0;
     this.field_1 = byteDizi_1;
     this.prop_0  = this.cmethod_1704(this.field_2).ToArray <long>();
     this.field_7 = new HashSet <long>(this.prop_0);
     this.field_9 = Class_223.gmethod_1473(this.field_0);
 }