Encodes a EC_KEY private key to an octet string

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
size_t
EC_KEY_priv2oct(
    EC_KEY const* key,
    unsigned char* buf,
    size_t len);
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

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

Created with MrDocs