From 1eac7d89da7fe6b1c8265d48a6562ff82ecf68da Mon Sep 17 00:00:00 2001 From: Gert Driesen Date: Wed, 27 Sep 2017 21:38:30 +0200 Subject: [PATCH] Fix typos. --- src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs b/src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs index fa53d36a..29223a2e 100644 --- a/src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs +++ b/src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs @@ -110,14 +110,14 @@ namespace Renci.SshNet.Security if (_prime.IsZero) throw new ArgumentNullException("_prime"); - // generate private component that is twice the hash size (RFC 4419) with a minimum + // generate private exponent that is twice the hash size (RFC 4419) with a minimum // of 1024 bits (whatever is less) - var privateComponentSize = Math.Max(HashSize * 2, 1024); + var privateExponentSize = Math.Max(HashSize * 2, 1024); do { // create private component - _privateExponent = BigInteger.Random(privateComponentSize); + _privateExponent = BigInteger.Random(privateExponentSize); // generate public component _clientExchangeValue = BigInteger.ModPow(_group, _privateExponent, _prime); } while (_clientExchangeValue < 1 || _clientExchangeValue > (_prime - 1));