1. Generate an EC key with openssl that explicitly specifies its curve parameters.
2. Load the key and curve parameters into Erlang, generate a new key using the loaded curve parameters.
3. The crypto:ec_key_generate() call rejects the curve parameters. The error appears to originate from crypto NIF code.
Note: this issue is not associated with the other public_key issues I've filed recently.
Curve parameters loaded from openssl-generated keys should be recognized by public_key/crypto.
The Params variable in my run was...
... and the resulting error was...