Sets the public key of a EC_KEY object.
Declared in <openssl/ec.h>
[[deprecated]]
int
EC_KEY_set_public_key(
EC_KEY* key,
EC_POINT const* pub);
Deprecated. Use of this entity is allowed but discouraged.
1 on success and 0 if an error occurred.
| Name | Description |
|---|---|
| key | EC_KEY object |
| pub | EC_POINT object with the public key (note: the EC_KEY object will use an own copy of the EC_POINT object). |