Skip to content

Commit 1eac7d8

Browse files
committed
Fix typos.
1 parent e783509 commit 1eac7d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ protected void PopulateClientExchangeValue()
110110
if (_prime.IsZero)
111111
throw new ArgumentNullException("_prime");
112112

113-
// generate private component that is twice the hash size (RFC 4419) with a minimum
113+
// generate private exponent that is twice the hash size (RFC 4419) with a minimum
114114
// of 1024 bits (whatever is less)
115-
var privateComponentSize = Math.Max(HashSize * 2, 1024);
115+
var privateExponentSize = Math.Max(HashSize * 2, 1024);
116116

117117
do
118118
{
119119
// create private component
120-
_privateExponent = BigInteger.Random(privateComponentSize);
120+
_privateExponent = BigInteger.Random(privateExponentSize);
121121
// generate public component
122122
_clientExchangeValue = BigInteger.ModPow(_group, _privateExponent, _prime);
123123
} while (_clientExchangeValue < 1 || _clientExchangeValue > (_prime - 1));

0 commit comments

Comments
 (0)