Encodes a EC_POINT object to a octet string
Declared in <openssl/ec.h>
size_t
EC_POINT_point2oct(
EC_GROUP const* group,
EC_POINT const* p,
point_conversion_form_t form,
unsigned char* buf,
size_t len,
BN_CTX* ctx);
the length of the encoded octet string or 0 if an error occurred
| Name | Description |
|---|---|
| group | underlying EC_GROUP object |
| p | EC_POINT object |
| form | point conversion form |
| buf | memory buffer for the result. If NULL the function returns required buffer size. |
| len | length of the memory buffer |
| ctx | BN_CTX object (optional) |