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

Name

Description

group

Curve that defines the point encoding.

hex

NUL‐terminated hexadecimal encoding of the point octets.

point

Existing point to overwrite, or NULL to allocate a new one.

ctx

BN_CTX for temporary BIGNUMs, or NULL to allocate internally.

Created with MrDocs