159160161162163164165166167168169
if (cipher != null) { packet = cipher.transform(packet); } // Reset the message message.reset(); // Write the packet data message.write(packet); // Combine the packet and MAC
168169170171172173174175176177178
} if (read > 0) { baw.write(buffer, 0, read); sendChannelData(baw.toByteArray()); baw.reset(); } } } } catch (IOException ex) { // Break out of the while loop
160161162163164165166167168169170
169170171172173174175176177178179