Org.BouncyCastle.Crypto.StreamBlockCipher.StreamBlockCipher C# (CSharp) Method

StreamBlockCipher() public method

public StreamBlockCipher ( IBlockCipher cipher ) : System
cipher IBlockCipher
return System
		public StreamBlockCipher(
			IBlockCipher cipher)
		{
			if (cipher == null)
				throw new ArgumentNullException("cipher");
			if (cipher.GetBlockSize() != 1)
				throw new ArgumentException("block cipher block size != 1.", "cipher");

			this.cipher = cipher;
		}