comparison src/ch/ethz/ssh2/packets/PacketKexDhGexGroup.java @ 307:071eccdff8ea ganymed

fix java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:16:58 -0700
parents 91a31873c42a
children
comparison
equal deleted inserted replaced
305:d2b303406d63 307:071eccdff8ea
19 private final BigInteger p; 19 private final BigInteger p;
20 private final BigInteger g; 20 private final BigInteger g;
21 21
22 public PacketKexDhGexGroup(byte payload[]) throws IOException { 22 public PacketKexDhGexGroup(byte payload[]) throws IOException {
23 TypesReader tr = new TypesReader(payload); 23 TypesReader tr = new TypesReader(payload);
24
25 int packet_type = tr.readByte(); 24 int packet_type = tr.readByte();
26 25
27 if(packet_type != Packets.SSH_MSG_KEX_DH_GEX_GROUP) { 26 if (packet_type != Packets.SSH_MSG_KEX_DH_GEX_GROUP) {
28 throw new PacketTypeException(packet_type); 27 throw new PacketTypeException(packet_type);
29 } 28 }
30 29
31 p = tr.readMPINT(); 30 p = tr.readMPINT();
32 g = tr.readMPINT(); 31 g = tr.readMPINT();
33 32
34 if(tr.remain() != 0) { 33 if (tr.remain() != 0) {
35 throw new PacketFormatException(String.format("Padding in %s", Packets.getMessageName(packet_type))); 34 throw new PacketFormatException(String.format("Padding in %s", Packets.getMessageName(packet_type)));
36 } 35 }
37 } 36 }
38 37
39 public BigInteger getG() { 38 public BigInteger getG() {