// Token: 0x060000DC RID: 220 RVA: 0x00007C2C File Offset: 0x00005E2C
 public GcmBlockCipher(IBlockCipher c, IGcmMultiplier m)
 {
     if (c.GetBlockSize() != 16)
     {
         throw new ArgumentException("cipher required with a block size of " + 16 + ".");
     }
     if (m == null)
     {
         m = new Tables8kGcmMultiplier();
     }
     this.cipher     = c;
     this.multiplier = m;
 }
Exemple #2
0
 public GcmBlockCipher(IBlockCipher c, IGcmMultiplier m)
 {
     //IL_0026: Unknown result type (might be due to invalid IL or missing references)
     if (c.GetBlockSize() != 16)
     {
         throw new ArgumentException(string.Concat((object)"cipher required with a block size of ", (object)16, (object)"."));
     }
     if (m == null)
     {
         m = new Tables8kGcmMultiplier();
     }
     cipher     = c;
     multiplier = m;
 }
Exemple #3
0
        public GcmBlockCipher(
            IBlockCipher	c,
            IGcmMultiplier	m)
        {
            if (c.GetBlockSize() != BlockSize)
                throw new ArgumentException("cipher required with a block size of " + BlockSize + ".");

            if (m == null)
            {
                // TODO Consider a static property specifying default multiplier
                m = new Tables8kGcmMultiplier();
            }

            this.cipher = c;
            this.multiplier = m;
        }