273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.transport;
|
|
6
|
|
7 import ch.ethz.ssh2.DHGexParameters;
|
310
|
8 import ch.ethz.ssh2.crypto.dh.GenericDhExchange;
|
273
|
9 import ch.ethz.ssh2.crypto.dh.DhGroupExchange;
|
|
10 import java.math.BigInteger;
|
|
11 import ch.ethz.ssh2.packets.PacketKexInit;
|
280
|
12 import java.security.KeyPair;
|
|
13 import java.security.PrivateKey;
|
|
14 import java.security.interfaces.DSAPrivateKey;
|
278
|
15 import java.security.interfaces.RSAPrivateKey;
|
280
|
16 import java.security.interfaces.ECPrivateKey;
|
273
|
17
|
|
18 /**
|
|
19 * KexState.
|
280
|
20 *
|
273
|
21 * @author Christian Plattner
|
|
22 * @version 2.50, 03/15/10
|
|
23 */
|
307
|
24 public class KexState {
|
|
25 public PacketKexInit localKEX;
|
|
26 public PacketKexInit remoteKEX;
|
|
27 public NegotiatedParameters np;
|
|
28 public int state = 0;
|
273
|
29
|
307
|
30 public BigInteger K;
|
|
31 public byte[] H;
|
280
|
32
|
307
|
33 public byte[] remote_hostkey;
|
280
|
34
|
310
|
35 public String hashAlgo;
|
|
36 public GenericDhExchange dhx;
|
307
|
37 public DhGroupExchange dhgx;
|
|
38 public DHGexParameters dhgexParameters;
|
280
|
39
|
307
|
40 public KeyPair local_dsa_key;
|
|
41 public KeyPair local_rsa_key;
|
|
42 public KeyPair local_ec_key;
|
273
|
43 }
|