BN_marshal_asn1 function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBB>, Pointer<BIGNUM>)>(ffi.Pointer<CBB>, ffi.Pointer<BIGNUM>)>(symbol: 'bssl_dart_BN_marshal_asn1')
int BN_marshal_asn1(
  1. Pointer<CBB> cbb,
  2. Pointer<BIGNUM> bn
)

BN_marshal_asn1 marshals |bn| as a non-negative DER INTEGER and appends the result to |cbb|. It returns one on success and zero on failure.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<CBB>, ffi.Pointer<BIGNUM>)>(
  symbol: 'bssl_dart_BN_marshal_asn1',
)
external int BN_marshal_asn1(
  ffi.Pointer<CBB> cbb,
  ffi.Pointer<BIGNUM> bn,
);