EC_KEY_set_private_key

Sets the private key of a EC_KEY object.

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
EC_KEY_set_private_key(
    EC_KEY* key,
    BIGNUM const* prv);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success and 0 if an error occurred.

Parameters

NameDescription
keyEC_KEY object
prvBIGNUM with the private key (note: the EC_KEY object will use an own copy of the BIGNUM).