CBS_mem_equal function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<Uint8>, Size)>(ffi.Pointer<CBS>, ffi.Pointer<ffi.Uint8>, ffi.Size)>(symbol: 'bssl_dart_CBS_mem_equal')
int CBS_mem_equal(
  1. Pointer<CBS> cbs,
  2. Pointer<Uint8> data,
  3. int len
)

CBS_mem_equal compares the current contents of |cbs| with the |len| bytes starting at |data|. If they're equal, it returns one, otherwise zero. If the lengths match, it uses a constant-time comparison.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(ffi.Pointer<CBS>, ffi.Pointer<ffi.Uint8>, ffi.Size)
>(symbol: 'bssl_dart_CBS_mem_equal')
external int CBS_mem_equal(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<ffi.Uint8> data,
  int len,
);