Renci.SshNet.Security.Cryptography.Ciphers.DesCipher.ValidateKey C# (CSharp) Method

ValidateKey() protected method

Validates the key.
protected ValidateKey ( ) : void
return void
        protected virtual void ValidateKey()
        {
            var keySize = Key.Length * 8;

            if (keySize != 64)
                throw new ArgumentException(string.Format("KeySize '{0}' is not valid for this algorithm.", keySize));
        }