/* If Sha256Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sha256Final(IN OUT VOID *Sha256Context, OUT UINT8 *HashValue)
/* If Sha256Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sha256Final(IN OUT VOID *Sha256Context, OUT UINT8 *HashValue)
{
  INT32  Ret;
  if ((Sha256Context == NULL) || (HashValue == NULL)) {
    return FALSE;
  }
  Ret = mbedtls_sha256_finish_ret (Sha256Context, HashValue);
  mbedtls_sha256_free (Sha256Context);
  if (Ret != 0) {
    return FALSE;
  }
  return TRUE;
}