Searched defs:algos (Results 1 - 3 of 3) sorted by relevance

/external/dropbear/
H A Dcommon-algo.c191 /* algolen specifies the length of algo, algos is our local list to match
195 int have_algo(char* algo, size_t algolen, algo_type algos[]) { argument
199 for (i = 0; algos[i].name != NULL; i++) {
200 if (strlen(algos[i].name) == algolen
201 && (strncmp(algos[i].name, algo, algolen) == 0)) {
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/
H A DKexManager.java322 public static void checkServerHostkeyAlgorithmsList(String[] algos) argument
324 for (int i = 0; i < algos.length; i++)
326 if (("ssh-rsa".equals(algos[i]) == false) && ("ssh-dss".equals(algos[i]) == false))
327 throw new IllegalArgumentException("Unknown server host key algorithm '" + algos[i] + "'");
337 public static void checkKexAlgorithmList(String[] algos) argument
339 for (int i = 0; i < algos.length; i++)
341 if ("diffie-hellman-group-exchange-sha1".equals(algos[i]))
344 if ("diffie-hellman-group14-sha1".equals(algos[i]))
347 if ("diffie-hellman-group1-sha1".equals(algos[
[all...]
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
H A DConnection.java1225 * @param algos An array of allowed server host key algorithms.
1231 public synchronized void setServerHostKeyAlgorithms(String[] algos) argument
1233 if ((algos == null) || (algos.length == 0))
1236 algos = removeDuplicates(algos);
1237 KexManager.checkServerHostkeyAlgorithmsList(algos);
1238 cryptoWishList.serverHostKeyAlgorithms = algos;

Completed in 591 milliseconds