X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FHash.h;h=fe8c9011a0b7e720a1c33938d8d13e16b6299a80;hp=9355da4fffe4a39a34db42f66e0cc8d9e8687393;hb=44717a398fddc4df1f4aeaa70bcd7a043187ed34;hpb=d1f950002362305fcd4c30f108ef7b76679f5843 diff --git a/MdePkg/Include/Protocol/Hash.h b/MdePkg/Include/Protocol/Hash.h index 9355da4fff..fe8c9011a0 100644 --- a/MdePkg/Include/Protocol/Hash.h +++ b/MdePkg/Include/Protocol/Hash.h @@ -6,7 +6,7 @@ so that a multiple drivers can use the underlying hashing services. The EFI Service Binding Protocol defines the generic Service Binding Protocol functions. - Copyright (c) 2006, Intel Corporation + Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -15,8 +15,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: Hash.h - **/ #ifndef __EFI_HASH_PROTOCOL_H__ @@ -95,12 +93,11 @@ typedef union { **/ typedef EFI_STATUS -(EFIAPI *EFI_HASH_GET_HASH_SIZE) ( +(EFIAPI *EFI_HASH_GET_HASH_SIZE)( IN CONST EFI_HASH_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, OUT UINTN *HashSize - ) -; + ); /** Returns the size of the hash which results from a specific algorithm. @@ -122,16 +119,19 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_HASH_HASH) ( +(EFIAPI *EFI_HASH_HASH)( IN CONST EFI_HASH_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, IN BOOLEAN Extend, IN CONST UINT8 *Message, IN UINT64 MessageSize, IN OUT EFI_HASH_OUTPUT *Hash - ) -; + ); +/// +/// This protocol allows creating a hash of an arbitrary message digest +/// using one or more hash algorithms. +/// struct _EFI_HASH_PROTOCOL { EFI_HASH_GET_HASH_SIZE GetHashSize; EFI_HASH_HASH Hash;