Added a easy way for the app code to generate the ecdh keys.