EC_KEY_METHOD_set_sign

Install ECDSA signing callbacks on an EC_KEY_METHOD.

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
void
EC_KEY_METHOD_set_sign(
    EC_KEY_METHOD* meth,
    int(* sign)(int, unsigned char const*, int, unsigned char*, unsigned int*, BIGNUM const*, BIGNUM const*, EC_KEY*),
    int(* sign_setup)(EC_KEY*, BN_CTX*, BIGNUM**, BIGNUM**),
    ECDSA_SIG*(* sign_sig)(unsigned char const*, int, BIGNUM const*, BIGNUM const*, EC_KEY*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Deprecated; custom EC_KEY_METHOD signing is superseded by providers.

Parameters

NameDescription
methMethod object to update.
signOptional ECDSA_sign-style callback (type, digest, signature buffer).
sign_setupOptional precomputation of kinv/r for signing.
sign_sigOptional callback that returns an ECDSA_SIG structure.