Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
drieseng committed Sep 27, 2017
1 parent e783509 commit 1eac7d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Renci.SshNet/Security/KeyExchangeDiffieHellman.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ protected void PopulateClientExchangeValue()
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));
Expand Down

0 comments on commit 1eac7d8

Please sign in to comment.