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()
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 ) ) ;
You can’t perform that action at this time.
0 commit comments