Creates a new ec private (and optional a new public) key.
Declared in <openssl/ec.h>
<openssl/ec.h>
[[deprecated]] int EC_KEY_generate_key(EC_KEY* key);
Deprecated. Use of this entity is allowed but discouraged.
1 on success and 0 if an error occurred.