i2d_EC_PRIVATEKEY
if ((ret = i2d_EC_PRIVATEKEY(priv_key, out)) == 0) {
int i2d_EC_PRIVATEKEY(const EC_PRIVATEKEY *a, unsigned char **out);