Renci.SshNet.CipherInfo.CipherInfo C# (CSharp) Method

CipherInfo() public method

Initializes a new instance of the CipherInfo class.
public CipherInfo ( int keySize, Func cipher ) : System
keySize int Size of the key.
cipher Func The cipher.
return System
        public CipherInfo(int keySize, Func<byte[], byte[], Cipher> cipher)
        {
            KeySize = keySize;
            Cipher = (key, iv) => (cipher(key.Take(KeySize / 8), iv));
        }
    }
CipherInfo