Encodes a EC_KEY private key to an octet string
Declared in <openssl/ec.h>
[[deprecated]]
size_t
EC_KEY_priv2oct(
EC_KEY const* key,
unsigned char* buf,
size_t len);
Deprecated. Use of this entity is allowed but discouraged.
the length of the encoded octet string or 0 if an error occurred
| 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 |