public EncryptionKeyPair(int baseKey){
  this.baseKey=baseKey;
  this.keys=new byte[2][];
  this.keys[SERVER]=new byte[]{(byte)(baseKey & 0xff),(byte)((baseKey >> 8) & 0xff),(byte)((baseKey >> 16) & 0xff),(byte)((baseKey >> 24) & 0xff),(byte)0xa1,(byte)0x6c,(byte)0x54,(byte)0x87};
  this.keys[CLIENT]=new byte[this.keys[SERVER].length];
  System.arraycopy(this.keys[SERVER],0,this.keys[CLIENT],0,this.keys[SERVER].length);
  this.lastUpdate=System.currentTimeMillis();
}

public EncryptionKeyPair ( int baseKey ) { this . baseKey = baseKey ; this . keys = new byte [ 2 ] [ ] ; this . keys [ SERVER ] = new byte [ ] { ( byte ) ( baseKey & 0xff ) , ( byte ) ( ( baseKey > > 8 ) & 0xff ) , ( byte ) ( ( baseKey > > 16 ) & 0xff ) , ( byte ) ( ( baseKey > > 24 ) & 0xff ) , ( byte ) 0xa1 , ( byte ) 0x6c , ( byte ) 0x54 , ( byte ) 0x87 } ; this . keys [ CLIENT ] = new byte [ this . keys [ SERVER ] . length ] ; System . arraycopy ( this . keys [ SERVER ] , 0 , this . keys [ CLIENT ] , 0 , this . keys [ SERVER ] . length ) ; this . lastUpdate = System . currentTimeMillis ( ) ; }
initializes client / server encryption keys based on basekey
