comparison src/ch/ethz/ssh2/crypto/CryptoWishList.java @ 342:175c7d68f3c4

merge ganymed into mainline
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 16:33:38 -0700
parents 071eccdff8ea
children
comparison
equal deleted inserted replaced
272:ce2f4e397703 342:175c7d68f3c4
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.
14 *
15 * @author Christian Plattner
16 * @version 2.50, 03/15/10
17 */
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();
25 public String[] c2s_comp_algos = CompressionFactory.getDefaultCompressorList();
26 public String[] s2c_comp_algos = CompressionFactory.getDefaultCompressorList();
27
28 public static CryptoWishList forServer() {
29 CryptoWishList cwl = new CryptoWishList();
30 cwl.kexAlgorithms = KexManager.getDefaultServerKexAlgorithmList();
31 return cwl;
32 }
33 }