[#ECDSA_sign] = ECDSA_sign :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int ECDSA_sign( int type, unsigned char const* dgst, int dgstlen, unsigned char* sig, unsigned int* siglen, xref:EC_KEY.adoc[EC_KEY]* eckey); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success and 0 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *type* | this parameter is ignored | *dgst* | pointer to the hash value to sign | *dgstlen* | length of the hash value | *sig* | memory for the DER encoded created signature | *siglen* | pointer to the length of the returned signature | *eckey* | EC_KEY object containing a private EC key |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#