/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sha256HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sha256HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
{
  INT32  Ret;
  if (HashValue == NULL) {
    return FALSE;
  }
  if ((Data == NULL) && (DataSize != 0)) {
    return FALSE;
  }
  Ret = mbedtls_sha256_ret (Data, DataSize, HashValue, FALSE);
  if (Ret != 0) {
    return FALSE;
  }
  return TRUE;
}