EC_KEY_priv2buf

Encodes an EC_KEY private key to an allocated octet string

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
size_t
EC_KEY_priv2buf(
    EC_KEY const* eckey,
    unsigned char** pbuf);

WARNING

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

NameDescription
eckeykey to encode
pbufreturns pointer to allocated buffer