EC_POINT_point2oct

Encodes a EC_POINT object to a octet string

Synopsis

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);

Return Value

the length of the encoded octet string or 0 if an error occurred

Parameters

NameDescription
groupunderlying EC_GROUP object
pEC_POINT object
formpoint conversion form
bufmemory buffer for the result. If NULL the function returns required buffer size.
lenlength of the memory buffer
ctxBN_CTX object (optional)