[#EC_KEY_set_private_key] = EC_KEY_set_private_key :mrdocs: Sets the private key of a EC_KEY object. == Synopsis Declared in `<openssl/ec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int EC_KEY_set_private_key( xref:EC_KEY.adoc[EC_KEY]* key, xref:BIGNUM.adoc[BIGNUM] const* prv); ---- [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 if an error occurred. == Parameters [cols="1,4"] |=== | Name| Description | *key* | EC_KEY object | *prv* | BIGNUM with the private key (note: the EC_KEY object will use an own copy of the BIGNUM). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#