Renci.SshNet.Security.Cryptography.Ciphers.DesCipher.ValidateKey C# (CSharp) Méthode

ValidateKey() protected méthode

Validates the key.
protected ValidateKey ( ) : void
Résultat 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));
        }