Creating some utility ECDH code