Fixed issue with secret shared key, now on to fixing buffers