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

Name

Description

key

key to decode

buf

memory buffer with the encoded ec point

len

length of the encoded ec point

ctx

BN_CTX object (optional)

Created with MrDocs