/* Returns the size of the hash which results from a specific algorithm. */
EFI_STATUS EFIAPI BaseCrypto2GetHashSize(IN CONST EFI_HASH2_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, OUT UINTN *HashSize)
/* Returns the size of the hash which results from a specific algorithm. */
EFI_STATUS EFIAPI BaseCrypto2GetHashSize(IN CONST EFI_HASH2_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, OUT UINTN *HashSize)
{
  EFI_HASH_INFO  *HashInfo;
  if ((This == NULL) || (HashSize == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  if (HashAlgorithm == NULL) {
    return EFI_UNSUPPORTED;
  }
  HashInfo = GetHashInfo (HashAlgorithm);
  if (HashInfo == NULL) {
    return EFI_UNSUPPORTED;
  }
  *HashSize = HashInfo->HashSize;
  return EFI_SUCCESS;
}