c2i_ASN1_INTEGER function

  1. @RecordUse.new()
  2. @Native<Pointer<ASN1_OCTET_STRING> Function(Pointer<Pointer<ASN1_OCTET_STRING>>, Pointer<Pointer<Uint8>>, Long)>(ffi.Pointer<ffi.Pointer<ASN1_INTEGER>>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Long)>(symbol: 'bssl_dart_c2i_ASN1_INTEGER')
Pointer<ASN1_OCTET_STRING> c2i_ASN1_INTEGER(
  1. Pointer<Pointer<ASN1_OCTET_STRING>> in$,
  2. Pointer<Pointer<Uint8>> outp,
  3. int len
)

c2i_ASN1_INTEGER decodes |len| bytes from |*inp| as the contents of a DER-encoded INTEGER, excluding the tag and length. It behaves like |d2i_SAMPLE| except, on success, it always consumes all |len| bytes.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ASN1_INTEGER> Function(
    ffi.Pointer<ffi.Pointer<ASN1_INTEGER>>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Long,
  )
>(symbol: 'bssl_dart_c2i_ASN1_INTEGER')
external ffi.Pointer<ASN1_INTEGER> c2i_ASN1_INTEGER(
  ffi.Pointer<ffi.Pointer<ASN1_INTEGER>> in$,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> outp,
  int len,
);