EC_KEY_oct2priv

Decodes an EC_KEY private key from an octet string

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
EC_KEY_oct2priv(
    EC_KEY* key,
    unsigned char const* buf,
    size_t len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success and 0 if an error occurred

Parameters

NameDescription
keykey to decode
bufmemory buffer with the encoded private key
lenlength of the encoded key