EC_GROUP_to_params

Creates an OSSL_PARAM array with the parameters describing the given EC_GROUP. The resulting parameters may contain an explicit or a named curve depending on the EC_GROUP.

Synopsis

Declared in <openssl/ec.h>

OSSL_PARAM*
EC_GROUP_to_params(
    EC_GROUP const* group,
    OSSL_LIB_CTX* libctx,
    char const* propq,
    BN_CTX* bnctx);

Return Value

newly created OSSL_PARAM array with the parameters describing the given EC_GROUP or NULL if an error occurred

Parameters

NameDescription
grouppointer to the EC_GROUP object
libctxThe associated library context or NULL for the default context
propqA property query string
bnctxBN_CTX object (optional)