Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/transport/KexManager.java @ 285:486df527ddc5 ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Jul 2014 18:33:40 -0700 |
parents | 51d5f434ef6b |
children | 349847b2e318 |
comparison
equal
deleted
inserted
replaced
284:4ec87de11e71 | 285:486df527ddc5 |
---|---|
52 | 52 |
53 final TransportManager tm; | 53 final TransportManager tm; |
54 | 54 |
55 CryptoWishList nextKEXcryptoWishList; | 55 CryptoWishList nextKEXcryptoWishList; |
56 DHGexParameters nextKEXdhgexParameters; | 56 DHGexParameters nextKEXdhgexParameters; |
57 DSAPrivateKey nextKEXdsakey; | 57 KeyPair nextKEXdsakey; |
58 RSAPrivateKey nextKEXrsakey; | 58 KeyPair nextKEXrsakey; |
59 | 59 |
60 final SecureRandom rnd; | 60 final SecureRandom rnd; |
61 | 61 |
62 public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, SecureRandom rnd) { | 62 public KexManager(TransportManager tm, ClientServerHello csh, CryptoWishList initialCwl, SecureRandom rnd) { |
63 this.tm = tm; | 63 this.tm = tm; |
180 np.guessOK = true; | 180 np.guessOK = true; |
181 } | 181 } |
182 return np; | 182 return np; |
183 } | 183 } |
184 | 184 |
185 public synchronized void initiateKEX(CryptoWishList cwl, DHGexParameters dhgex, DSAPrivateKey dsa, RSAPrivateKey rsa) | 185 public synchronized void initiateKEX(CryptoWishList cwl, DHGexParameters dhgex, KeyPair dsa, KeyPair rsa) |
186 throws IOException { | 186 throws IOException { |
187 nextKEXcryptoWishList = cwl; | 187 nextKEXcryptoWishList = cwl; |
188 nextKEXdhgexParameters = dhgex; | 188 nextKEXdhgexParameters = dhgex; |
189 nextKEXdsakey = dsa; | 189 nextKEXdsakey = dsa; |
190 nextKEXrsakey = rsa; | 190 nextKEXrsakey = rsa; |