EC_KEY_oct2key function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<EC_KEY>, Pointer<Uint8>, Size, Pointer<BN_CTX>)>(ffi.Pointer<EC_KEY>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<BN_CTX>)>(symbol: 'bssl_dart_EC_KEY_oct2key')
int EC_KEY_oct2key(
  1. Pointer<EC_KEY> key,
  2. Pointer<Uint8> in$,
  3. int len,
  4. Pointer<BN_CTX> ctx,
)

EC_KEY_oct2key decodes |len| bytes from |in| as an EC public key in X9.62 form. |key| must already have a group configured. On success, it sets the public key in |key| to the result and returns one. Otherwise, it returns zero. |ctx| may be NULL.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<EC_KEY>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
    ffi.Pointer<BN_CTX>,
  )
>(symbol: 'bssl_dart_EC_KEY_oct2key')
external int EC_KEY_oct2key(
  ffi.Pointer<EC_KEY> key,
  ffi.Pointer<ffi.Uint8> in$,
  int len,
  ffi.Pointer<BN_CTX> ctx,
);