Install lifecycle and field‐assignment callbacks on an EC_KEY_METHOD (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
void
EC_KEY_METHOD_set_init(
    EC_KEY_METHOD* meth,
    int(* init)(EC_KEY*),
    void(* finish)(EC_KEY*),
    int(* copy)(EC_KEY*, EC_KEY const*),
    int(* set_group)(EC_KEY*, EC_GROUP const*),
    int(* set_private)(EC_KEY*, BIGNUM const*),
    int(* set_public)(EC_KEY*, EC_POINT const*));
Warning

Deprecated. Use of this entity is allowed but discouraged.

Parameters

Name

Description

meth

Method table to update.

init

Optional constructor called when an EC_KEY using meth is created.

finish

Optional destructor called when such an EC_KEY is freed.

copy

Optional deep‐copy callback from src into dest.

set_group

Optional callback to assign the EC_GROUP on the key.

set_private

Optional callback to assign the private BIGNUM.

set_public

Optional callback to assign the public EC_POINT.

Created with MrDocs