comparison src/ch/ethz/ssh2/crypto/CryptoWishList.java @ 308:42b15aaa7ac7 ganymed

merge
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:21:50 -0700
parents 071eccdff8ea
children
comparison
equal deleted inserted replaced
306:90e47d99ea54 308:42b15aaa7ac7
9 import ch.ethz.ssh2.crypto.digest.MAC; 9 import ch.ethz.ssh2.crypto.digest.MAC;
10 import ch.ethz.ssh2.transport.KexManager; 10 import ch.ethz.ssh2.transport.KexManager;
11 11
12 /** 12 /**
13 * CryptoWishList. 13 * CryptoWishList.
14 * 14 *
15 * @author Christian Plattner 15 * @author Christian Plattner
16 * @version 2.50, 03/15/10 16 * @version 2.50, 03/15/10
17 */ 17 */
18 public class CryptoWishList 18 public class CryptoWishList {
19 { 19 public String[] kexAlgorithms = KexManager.getDefaultClientKexAlgorithmList();
20 public String[] kexAlgorithms = KexManager.getDefaultClientKexAlgorithmList(); 20 public String[] serverHostKeyAlgorithms = KexManager.getDefaultServerHostkeyAlgorithmList();
21 public String[] serverHostKeyAlgorithms = KexManager.getDefaultServerHostkeyAlgorithmList(); 21 public String[] c2s_enc_algos = BlockCipherFactory.getDefaultCipherList();
22 public String[] c2s_enc_algos = BlockCipherFactory.getDefaultCipherList(); 22 public String[] s2c_enc_algos = BlockCipherFactory.getDefaultCipherList();
23 public String[] s2c_enc_algos = BlockCipherFactory.getDefaultCipherList(); 23 public String[] c2s_mac_algos = MAC.getMacList();
24 public String[] c2s_mac_algos = MAC.getMacList(); 24 public String[] s2c_mac_algos = MAC.getMacList();
25 public String[] s2c_mac_algos = MAC.getMacList();
26 public String[] c2s_comp_algos = CompressionFactory.getDefaultCompressorList(); 25 public String[] c2s_comp_algos = CompressionFactory.getDefaultCompressorList();
27 public String[] s2c_comp_algos = CompressionFactory.getDefaultCompressorList(); 26 public String[] s2c_comp_algos = CompressionFactory.getDefaultCompressorList();
28 27
29 public static CryptoWishList forServer() 28 public static CryptoWishList forServer() {
30 { 29 CryptoWishList cwl = new CryptoWishList();
31 CryptoWishList cwl = new CryptoWishList(); 30 cwl.kexAlgorithms = KexManager.getDefaultServerKexAlgorithmList();
32 cwl.kexAlgorithms = KexManager.getDefaultServerKexAlgorithmList(); 31 return cwl;
33 return cwl; 32 }
34 }
35 } 33 }