Changing back to datastream and able to generate pubKey given the byte[].
TODO : change decryption.