[#EC_KEY_priv2oct] = EC_KEY_priv2oct :mrdocs: Encodes a EC_KEY private key to an octet string == Synopsis Declared in `<openssl/ec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] size_t EC_KEY_priv2oct( xref:EC_KEY.adoc[EC_KEY] const* key, unsigned char* buf, size_t len); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value the length of the encoded octet string or 0 if an error occurred == Parameters [cols="1,4"] |=== | Name| Description | *key* | key to encode | *buf* | memory buffer for the result. If NULL the function returns required buffer size. | *len* | length of the memory buffer |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#