EC_KEY_set_public_key function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<EC_KEY>, Pointer<EC_POINT>)>(ffi.Pointer<EC_KEY>, ffi.Pointer<EC_POINT>)>(symbol: 'bssl_dart_EC_KEY_set_public_key')
int EC_KEY_set_public_key(
  1. Pointer<EC_KEY> key,
  2. Pointer<EC_POINT> pub
)

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,
);