EC_POINT_bn2point

Decode an EC point from a BIGNUM holding the SEC1 octet form (deprecated).

Synopsis

Declared in <openssl/ec.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

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

Parameters

NameDescription
groupCurve that defines the point encoding.
bnBIGNUM whose big-endian content is the SEC1 octet string of the point.
pointOptional EC_POINT to reuse for the result, or NULL to allocate one.
ctxBN_CTX for temporary values, or NULL.