ECDSA_sign_ex

Computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
ECDSA_sign_ex(
    int type,
    unsigned char const* dgst,
    int dgstlen,
    unsigned char* sig,
    unsigned int* siglen,
    BIGNUM const* kinv,
    BIGNUM const* rp,
    EC_KEY* eckey);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success and 0 otherwise

Parameters

NameDescription
typethis parameter is ignored
dgstpointer to the hash value to sign
dgstlenlength of the hash value
sigbuffer to hold the DER encoded signature
siglenpointer to the length of the returned signature
kinvBIGNUM with a pre-computed inverse k (optional)
rpBIGNUM with a pre-computed rp value (optional), see ECDSA_sign_setup
eckeyEC_KEY object containing a private EC key