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.crypto;
|
|
6
|
|
7 import ch.ethz.ssh2.compression.CompressionFactory;
|
|
8 import ch.ethz.ssh2.crypto.cipher.BlockCipherFactory;
|
|
9 import ch.ethz.ssh2.crypto.digest.MAC;
|
|
10 import ch.ethz.ssh2.transport.KexManager;
|
|
11
|
|
12 /**
|
|
13 * CryptoWishList.
|
307
|
14 *
|
273
|
15 * @author Christian Plattner
|
|
16 * @version 2.50, 03/15/10
|
|
17 */
|
307
|
18 public class CryptoWishList {
|
|
19 public String[] kexAlgorithms = KexManager.getDefaultClientKexAlgorithmList();
|
|
20 public String[] serverHostKeyAlgorithms = KexManager.getDefaultServerHostkeyAlgorithmList();
|
|
21 public String[] c2s_enc_algos = BlockCipherFactory.getDefaultCipherList();
|
|
22 public String[] s2c_enc_algos = BlockCipherFactory.getDefaultCipherList();
|
|
23 public String[] c2s_mac_algos = MAC.getMacList();
|
|
24 public String[] s2c_mac_algos = MAC.getMacList();
|
273
|
25 public String[] c2s_comp_algos = CompressionFactory.getDefaultCompressorList();
|
307
|
26 public String[] s2c_comp_algos = CompressionFactory.getDefaultCompressorList();
|
273
|
27
|
307
|
28 public static CryptoWishList forServer() {
|
|
29 CryptoWishList cwl = new CryptoWishList();
|
|
30 cwl.kexAlgorithms = KexManager.getDefaultServerKexAlgorithmList();
|
|
31 return cwl;
|
|
32 }
|
273
|
33 }
|