Mercurial > 510Connectbot
comparison app/src/main/java/ch/ethz/ssh2/crypto/CryptoWishList.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/ch/ethz/ssh2/crypto/CryptoWishList.java@071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
437:208b31032318 | 438:d29cce60f393 |
---|---|
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 } |