comparison src/ch/ethz/ssh2/crypto/CryptoWishList.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children 071eccdff8ea
comparison
equal deleted inserted replaced
272:ce2f4e397703 273:91a31873c42a
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 {
20 public String[] kexAlgorithms = KexManager.getDefaultClientKexAlgorithmList();
21 public String[] serverHostKeyAlgorithms = KexManager.getDefaultServerHostkeyAlgorithmList();
22 public String[] c2s_enc_algos = BlockCipherFactory.getDefaultCipherList();
23 public String[] s2c_enc_algos = BlockCipherFactory.getDefaultCipherList();
24 public String[] c2s_mac_algos = MAC.getMacList();
25 public String[] s2c_mac_algos = MAC.getMacList();
26 public String[] c2s_comp_algos = CompressionFactory.getDefaultCompressorList();
27 public String[] s2c_comp_algos = CompressionFactory.getDefaultCompressorList();
28
29 public static CryptoWishList forServer()
30 {
31 CryptoWishList cwl = new CryptoWishList();
32 cwl.kexAlgorithms = KexManager.getDefaultServerKexAlgorithmList();
33 return cwl;
34 }
35 }