/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sha1HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sha1HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
{
  SHA_CTX  Context;
  if (HashValue == NULL) {
    return FALSE;
  }
  if ((Data == NULL) && (DataSize != 0)) {
    return FALSE;
  }
  if (!SHA1_Init (&Context)) {
    return FALSE;
  }
  if (!SHA1_Update (&Context, Data, DataSize)) {
    return FALSE;
  }
  if (!SHA1_Final (HashValue, &Context)) {
    return FALSE;
  }
  return TRUE;
}