EC_POINT_point2bn

Encode an EC point as a BIGNUM holding the SEC1 octet form (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
BIGNUM*
EC_POINT_point2bn(
    EC_GROUP const* group,
    EC_POINT const* point,
    point_conversion_form_t form,
    BIGNUM* bn,
    BN_CTX* ctx);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Pointer to the result BIGNUM (same as bn when non-NULL), or NULL on error.

Parameters

NameDescription
groupCurve that defines point.
pointPoint to encode.
formConversion form passed to EC_POINT_point2oct().
bnOptional BIGNUM to reuse for the result, or NULL to allocate one.
ctxBN_CTX for temporary values, or NULL.