Encodes ec parameter and stores the result in a buffer.
the EC_KEY object with ec paramters to encode
the buffer for the result (if null the function returns number of bytes needed).
1 on success and 0 if an error occurred.
See Implementation
Encodes ec parameter and stores the result in a buffer.