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