SHA256_Final function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<Uint8>, Pointer<SHA256_CTX>)>(ffi.Pointer<ffi.Uint8>, ffi.Pointer<SHA256_CTX>)>(symbol: 'bssl_dart_SHA256_Final')
int SHA256_Final(
  1. Pointer<Uint8> out,
  2. Pointer<SHA256_CTX> sha
)

SHA256_Final adds the final padding to |sha| and writes the resulting digest to |out|, which must have at least |SHA256_DIGEST_LENGTH| bytes of space. It returns one on success and zero on programmer error.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<ffi.Uint8>, ffi.Pointer<SHA256_CTX>)>(
  symbol: 'bssl_dart_SHA256_Final',
)
external int SHA256_Final(
  ffi.Pointer<ffi.Uint8> out,
  ffi.Pointer<SHA256_CTX> sha,
);