EC_KEY_set_public_key

Sets the public key of a EC_KEY object.

extern (C) nothrow @nogc
int
EC_KEY_set_public_key
(,
const(.EC_POINT)* pub
)

Parameters

key .EC_KEY*

EC_KEY object

pub const(.EC_POINT)*

EC_POINT object with the public key (note: the EC_KEY object will use an own copy of the EC_POINT object).

Return Value

Type: int

1 on success and 0 if an error occurred.

Meta