SHA256 function

  1. @RecordUse.new()
  2. @Native<Pointer<Uint8> Function(Pointer<Uint8>, Size, Pointer<Uint8>)>(ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Uint8>)>(symbol: 'bssl_dart_SHA256')
Pointer<Uint8> SHA256(
  1. Pointer<Uint8> data,
  2. int len,
  3. Pointer<Uint8> out
)

SHA256 writes the digest of |len| bytes from |data| to |out| and returns |out|. There must be at least |SHA256_DIGEST_LENGTH| bytes of space in |out|.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ffi.Uint8> Function(
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
    ffi.Pointer<ffi.Uint8>,
  )
>(symbol: 'bssl_dart_SHA256')
external ffi.Pointer<ffi.Uint8> SHA256(
  ffi.Pointer<ffi.Uint8> data,
  int len,
  ffi.Pointer<ffi.Uint8> out,
);