EC_POINT_point2oct function
EC_POINT_point2oct serialises |point| into the X9.62 form given by |form| into, at most, |max_out| bytes at |buf|. It returns the number of bytes written or zero on error if |buf| is non-NULL, else the number of bytes needed. |ctx| is ignored and may be NULL.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Size Function(
ffi.Pointer<EC_GROUP>,
ffi.Pointer<EC_POINT>,
ffi.UnsignedInt,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
ffi.Pointer<BN_CTX>,
)
>(symbol: 'bssl_dart_EC_POINT_point2oct')
external int EC_POINT_point2oct(
ffi.Pointer<EC_GROUP> group,
ffi.Pointer<EC_POINT> point,
int form,
ffi.Pointer<ffi.Uint8> buf,
int max_out,
ffi.Pointer<BN_CTX> ctx,
);