ManyMonkeys.Cryptography.Twofish.Twofish C# (CSharp) Method

Twofish() public method

This is the Twofish constructor.
public Twofish ( ) : System
return System
        public Twofish()
        {
            this.LegalKeySizesValue = new KeySizes[]{new KeySizes(128,256,64)}; // this allows us to have 128,192,256 key sizes

            this.LegalBlockSizesValue = new KeySizes[]{new KeySizes(128,128,0)}; // this is in bits - typical of MS - always 16 bytes

            this.BlockSize = 128; // set this to 16 bytes we cannot have any other value
            this.KeySize = 128; // in bits - this can be changed to 128,192,256

            this.Padding = PaddingMode.Zeros;

            this.Mode = CipherMode.ECB;
        }