X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FHash.h;h=6441bfe7a8de8ab7bafb68a9f0cb4766aba0c0c8;hb=f754f721bf10508ca15c5c9243caa39c765662cf;hp=9355da4fffe4a39a34db42f66e0cc8d9e8687393;hpb=d1f950002362305fcd4c30f108ef7b76679f5843;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/Hash.h b/MdePkg/Include/Protocol/Hash.h index 9355da4fff..6441bfe7a8 100644 --- a/MdePkg/Include/Protocol/Hash.h +++ b/MdePkg/Include/Protocol/Hash.h @@ -2,11 +2,11 @@ EFI_HASH_SERVICE_BINDING_PROTOCOL as defined in UEFI 2.0. EFI_HASH_PROTOCOL as defined in UEFI 2.0. The EFI Hash Service Binding Protocol is used to locate hashing services support - provided by a driver and create and destroy instances of the EFI Hash Protocol + provided by a driver and to create and destroy instances of the EFI Hash Protocol 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;