EC_KEY_set_public_key function
EC_KEY_set_public_key sets the public key of |key| to |pub|, by copying it. It returns one on success and zero otherwise. |key| must already have had a group configured (see |EC_KEY_set_group| and |EC_KEY_new_by_curve_name|), and |pub| must also belong to that group, and must not be the point at infinity.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<EC_KEY>, ffi.Pointer<EC_POINT>)>(
symbol: 'bssl_dart_EC_KEY_set_public_key',
)
external int EC_KEY_set_public_key(
ffi.Pointer<EC_KEY> key,
ffi.Pointer<EC_POINT> pub,
);