annotate src/ch/ethz/ssh2/compression/Compressor.java @ 376:711ad4cf87b6

debug kex error
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 14:30:05 -0700
parents 9a657362519c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
326
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
1 /*
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
2 * ConnectBot: simple, powerful, open-source SSH client for Android
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
3 * Copyright 2007 Kenny Root, Jeffrey Sharkey
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
4 *
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
5 * Licensed under the Apache License, Version 2.0 (the "License");
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
6 * you may not use this file except in compliance with the License.
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
7 * You may obtain a copy of the License at
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
8 *
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
9 * http://www.apache.org/licenses/LICENSE-2.0
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
10 *
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
11 * Unless required by applicable law or agreed to in writing, software
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
12 * distributed under the License is distributed on an "AS IS" BASIS,
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
14 * See the License for the specific language governing permissions and
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
15 * limitations under the License.
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
16 */
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
17
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
18 package ch.ethz.ssh2.compression;
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
19
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
20 /**
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
21 * @author Kenny Root
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
22 *
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
23 */
327
9a657362519c pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents: 326
diff changeset
24 public interface Compressor {
326
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
25 int getBufferSize();
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
26
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
27 int compress(byte[] buf, int start, int len, byte[] output);
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
28
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
29 byte[] uncompress(byte[] buf, int start, int[] len);
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
30
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
31 boolean canCompressPreauth();
97da8c5fb40a pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
32 }