File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Renci.SshNet/Security Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,14 @@ protected void PopulateClientExchangeValue()
110
110
if ( _prime . IsZero )
111
111
throw new ArgumentNullException ( "_prime" ) ;
112
112
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
114
114
// of 1024 bits (whatever is less)
115
- var privateComponentSize = Math . Max ( HashSize * 2 , 1024 ) ;
115
+ var privateExponentSize = Math . Max ( HashSize * 2 , 1024 ) ;
116
116
117
117
do
118
118
{
119
119
// create private component
120
- _privateExponent = BigInteger . Random ( privateComponentSize ) ;
120
+ _privateExponent = BigInteger . Random ( privateExponentSize ) ;
121
121
// generate public component
122
122
_clientExchangeValue = BigInteger . ModPow ( _group , _privateExponent , _prime ) ;
123
123
} while ( _clientExchangeValue < 1 || _clientExchangeValue > ( _prime - 1 ) ) ;
You can’t perform that action at this time.
0 commit comments