Example #1
0
        // Token: 0x060003D5 RID: 981 RVA: 0x00019244 File Offset: 0x00017444
        internal Class_158(Stream stream_, Class_157 arg_0, Class_161 arg_1)
        {
            this.field_1 = arg_0;
            this.field_2 = stream_;
            this.field_3 = arg_1;
            this.field_4 = 1;
            if (this.field_1 == null)
            {
                throw new Class_136("Supply a password to use AES encryption.");
            }
            int num = this.field_1.prop_5.Length * 8;

            if (num != 256 && num != 128 && num != 192)
            {
                throw new ArgumentOutOfRangeException("keysize", "size of key must be 128, 192, or 256");
            }
            this.field_6           = new HMACSHA1(this.field_1.prop_6);
            this.field_7           = new RijndaelManaged();
            this.field_7.BlockSize = 128;
            this.field_7.KeySize   = num;
            this.field_7.Mode      = CipherMode.ECB;
            this.field_7.Padding   = PaddingMode.None;
            byte[] rgbIV = new byte[16];
            this.field_8 = this.field_7.CreateEncryptor(this.field_1.prop_5, rgbIV);
            if (this.field_3 == Class_161.Encrypt)
            {
                this.field_15 = new byte[2048];
                this.field_13 = new byte[16];
            }
        }
Example #2
0
 // Token: 0x060003D4 RID: 980 RVA: 0x00019231 File Offset: 0x00017431
 internal Class_158(Stream stream_, Class_157 arg_0, long sayıUınt_0, Class_161 arg_1) : this(stream_, arg_0, arg_1)
 {
     this.field_11 = sayıUınt_0;
 }
Example #3
0
 // Token: 0x060003F2 RID: 1010 RVA: 0x00019CE2 File Offset: 0x00017EE2
 public Class_162(Stream stream_, Class_160 arg_0, Class_161 arg_1)
 {
     this.field_0 = arg_0;
     this.field_1 = stream_;
     this.field_2 = arg_1;
 }