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; }
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; }