[#EC_KEY_oct2priv] = EC_KEY_oct2priv :mrdocs: Decodes an EC_KEY private key from an octet string == Synopsis Declared in `<openssl/ec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int EC_KEY_oct2priv( xref:EC_KEY.adoc[EC_KEY]* key, unsigned char const* buf, size_t len); ---- [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* | key to decode | *buf* | memory buffer with the encoded private key | *len* | length of the encoded key |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#