Example #1
0
 public Cipher(CipherSuite suite, BulkEncryptionAlgorithm encrypalgo, MACAlgorithm macalgo,
               byte nBlockSize, byte nIVSize, int nKeyBits, byte nKeyMaterialSize)
 {
     CipherSuite             = suite;
     BulkEncryptionAlgorithm = encrypalgo;
     MACAlgorithm            = macalgo;
     BlockSizeBytes          = nBlockSize;
     IVSize            = nIVSize;
     KeySizeBits       = nKeyBits;
     KeyMaterialLength = nKeyMaterialSize;
     KeyBlockSize      = (this.KeyMaterialLength + this.HashSize + this.IVSize) << 1;
 }
Example #2
0
 public Cipher(CipherSuite suite, BulkEncryptionAlgorithm encrypalgo, MACAlgorithm macalgo,
     byte nBlockSize, byte nIVSize, int nKeyBits, byte nKeyMaterialSize)
 {
     CipherSuite = suite;
     BulkEncryptionAlgorithm = encrypalgo;
     MACAlgorithm = macalgo;
     BlockSizeBytes = nBlockSize;
     IVSize = nIVSize;
     KeySizeBits= nKeyBits;
     KeyMaterialLength = nKeyMaterialSize;
     KeyBlockSize = (this.KeyMaterialLength + this.HashSize + this.IVSize) << 1;
 }