Lines Matching refs:length
78 length = 38 + session_id.length + (this.cipher_suites.length << 1)
79 + compression_methods.length;
85 * @param length
88 public ClientHello(HandshakeIODataStream in, int length) throws IOException {
97 if ((l & 0x01) == 0x01) { // cipher suites length must be an even number
111 this.length = 38 + session_id.length + (cipher_suites.length << 1)
112 + compression_methods.length;
113 if (this.length > length) {
118 if (this.length < length) {
119 in.skip(length - this.length);
120 this.length = length;
148 for (int i = 0; i < cipher_suites.length; i++) {
167 this.length = 38 + session_id.length + (cipher_suites.length << 1)
168 + compression_methods.length;
179 out.writeUint8(session_id.length);
181 int size = cipher_suites.length << 1;
183 for (int i = 0; i < cipher_suites.length; i++) {
186 out.writeUint8(compression_methods.length);
187 for (int i = 0; i < compression_methods.length; i++) {