ECDSA_SIG_to_bytes function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<Pointer<Uint8>>, Pointer<Size>, Pointer<ECDSA_SIG>)>(ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Pointer<ffi.Size>, ffi.Pointer<ECDSA_SIG>)>(symbol: 'bssl_dart_ECDSA_SIG_to_bytes')
int ECDSA_SIG_to_bytes(
  1. Pointer<Pointer<Uint8>> out_bytes,
  2. Pointer<Size> out_len,
  3. Pointer<ECDSA_SIG> sig
)

ECDSA_SIG_to_bytes marshals |sig| as a DER-encoded ECDSA-Sig-Value and, on success, sets |*out_bytes| to a newly allocated buffer containing the result and returns one. Otherwise, it returns zero. The result should be freed with |OPENSSL_free|.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Pointer<ffi.Size>,
    ffi.Pointer<ECDSA_SIG>,
  )
>(symbol: 'bssl_dart_ECDSA_SIG_to_bytes')
external int ECDSA_SIG_to_bytes(
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> out_bytes,
  ffi.Pointer<ffi.Size> out_len,
  ffi.Pointer<ECDSA_SIG> sig,
);