1 package ch.ethz.ssh2.packets; 2 3 import java.math.BigInteger ; 4 5 11 public class PacketKexDHInit 12 { 13 byte[] payload; 14 15 BigInteger e; 16 17 public PacketKexDHInit(BigInteger e) 18 { 19 this.e = e; 20 } 21 22 public byte[] getPayload() 23 { 24 if (payload == null) 25 { 26 TypesWriter tw = new TypesWriter(); 27 tw.writeByte(Packets.SSH_MSG_KEXDH_INIT); 28 tw.writeMPInt(e); 29 payload = tw.getBytes(); 30 } 31 return payload; 32 } 33 } 34 | Popular Tags |