EC_POINT_hex2point

Decode an EC point from a hex-encoded octet string.

Synopsis

Declared in <openssl/ec.h>

EC_POINT*
EC_POINT_hex2point(
    EC_GROUP const* group,
    char const* hex,
    EC_POINT* point,
    BN_CTX* ctx);

Return Value

The resulting EC_POINT, or NULL on error.

Parameters

NameDescription
groupCurve that defines the point encoding.
hexNUL-terminated hexadecimal encoding of the point octets.
pointExisting point to overwrite, or NULL to allocate a new one.
ctxBN_CTX for temporary BIGNUMs, or NULL to allocate internally.