EC_KEY_oct2key

Decodes a EC_KEY public key from a octet string

Synopsis

Declared in <openssl/ec.h>

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

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 ec point
lenlength of the encoded ec point
ctxBN_CTX object (optional)