Typedefs | |
typedef IN CONST VOID * | Data |
typedef IN CONST VOID IN UINTN | DataSize |
typedef OUT UINT8 * | HashValue |
Functions | |
typedef | UINTN (EFIAPI *EFI_HASH_GET_CONTEXT_SIZE)(VOID) |
typedef | BOOLEAN (EFIAPI *EFI_HASH_INIT)(OUT VOID *HashContext) |
EFI_STATUS EFIAPI | BaseCrypto2GetHashSize (IN CONST EFI_HASH2_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, OUT UINTN *HashSize) |
EFI_STATUS EFIAPI | BaseCrypto2Hash (IN CONST EFI_HASH2_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm, IN CONST UINT8 *Message, IN UINTN MessageSize, IN OUT EFI_HASH2_OUTPUT *Hash) |
EFI_STATUS EFIAPI | BaseCrypto2HashInit (IN CONST EFI_HASH2_PROTOCOL *This, IN CONST EFI_GUID *HashAlgorithm) |
EFI_STATUS EFIAPI | BaseCrypto2HashUpdate (IN CONST EFI_HASH2_PROTOCOL *This, IN CONST UINT8 *Message, IN UINTN MessageSize) |
EFI_STATUS EFIAPI | BaseCrypto2HashFinal (IN CONST EFI_HASH2_PROTOCOL *This, IN OUT EFI_HASH2_OUTPUT *Hash) |
EFI_HASH_INFO * | GetHashInfo (IN CONST EFI_GUID *HashAlgorithm) |
Variables | |
EFI_HASH_INFO | mHashInfo [] |
EFI_HASH2_PROTOCOL | mHash2Protocol |
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2015, 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 that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
typedef IN CONST VOID* Data |
typedef IN CONST VOID IN UINTN DataSize |
typedef OUT UINT8* HashValue |
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.
[in] | This | Points to this instance of EFI_HASH2_PROTOCOL. |
[in] | HashAlgorithm | Points to the EFI_GUID which identifies the algorithm to use. |
[out] | HashSize | Holds the returned size of the algorithm's hash. |
EFI_SUCCESS | Hash size returned successfully. | |
EFI_INVALID_PARAMETER | This or HashSize is NULL. | |
EFI_UNSUPPORTED | The algorithm specified by HashAlgorithm is not supported by this driver or HashAlgorithm is null. |
References GetHashInfo().
EFI_STATUS EFIAPI BaseCrypto2Hash | ( | IN CONST EFI_HASH2_PROTOCOL * | This, | |
IN CONST EFI_GUID * | HashAlgorithm, | |||
IN CONST UINT8 * | Message, | |||
IN UINTN | MessageSize, | |||
IN OUT EFI_HASH2_OUTPUT * | Hash | |||
) |
Creates a hash for the specified message text. The hash is not extendable. The output is final with any algorithm-required padding added by the function.
[in] | This | Points to this instance of EFI_HASH2_PROTOCOL. |
[in] | HashAlgorithm | Points to the EFI_GUID which identifies the algorithm to use. |
[in] | Message | Points to the start of the message. |
[in] | MessageSize | The size of Message, in bytes. |
[in,out] | Hash | On input, points to a caller-allocated buffer of the size returned by GetHashSize() for the specified HashAlgorithm. On output, the buffer holds the resulting hash computed from the message. |
EFI_SUCCESS | Hash returned successfully. | |
EFI_INVALID_PARAMETER | This or Hash is NULL. | |
EFI_UNSUPPORTED | The algorithm specified by HashAlgorithm is not supported by this driver or HashAlgorithm is Null. | |
EFI_OUT_OF_RESOURCES | Some resource required by the function is not available or MessageSize is greater than platform maximum. |
References BOOLEAN(), EFI_STATUS(), GetHashInfo(), HASH2_INSTANCE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::HashContext, HASH2_INSTANCE_DATA::HashInfoContext, and UINTN().
EFI_STATUS EFIAPI BaseCrypto2HashFinal | ( | IN CONST EFI_HASH2_PROTOCOL * | This, | |
IN OUT EFI_HASH2_OUTPUT * | Hash | |||
) |
Finalizes a hash operation in progress and returns calculation result. The output is final with any necessary padding added by the function. The hash may not be further updated or extended after HashFinal().
[in] | This | Points to this instance of EFI_HASH2_PROTOCOL. |
[in,out] | Hash | On input, points to a caller-allocated buffer of the size returned by GetHashSize() for the specified HashAlgorithm specified in preceding HashInit(). On output, the buffer holds the resulting hash computed from the message. |
EFI_SUCCESS | Hash returned successfully. | |
EFI_INVALID_PARAMETER | This or Hash is NULL. | |
EFI_NOT_READY | This call was not preceded by a valid call to HashInit() and at least one call to HashUpdate(), or the operation in progress was canceled by a call to Hash() on the same instance. |
References BOOLEAN(), HASH2_INSTANCE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::HashContext, HASH2_INSTANCE_DATA::HashInfoContext, and HASH2_INSTANCE_DATA::Updated.
EFI_STATUS EFIAPI BaseCrypto2HashInit | ( | IN CONST EFI_HASH2_PROTOCOL * | This, | |
IN CONST EFI_GUID * | HashAlgorithm | |||
) |
This function must be called to initialize a digest calculation to be subsequently performed using the EFI_HASH2_PROTOCOL functions HashUpdate() and HashFinal().
[in] | This | Points to this instance of EFI_HASH2_PROTOCOL. |
[in] | HashAlgorithm | Points to the EFI_GUID which identifies the algorithm to use. |
EFI_SUCCESS | Initialized successfully. | |
EFI_INVALID_PARAMETER | This is NULL. | |
EFI_UNSUPPORTED | The algorithm specified by HashAlgorithm is not supported by this driver or HashAlgorithm is Null. | |
EFI_OUT_OF_RESOURCES | Process failed due to lack of required resource. | |
EFI_ALREADY_STARTED | This function is called when the operation in progress is still in processing Hash(), or HashInit() is already called before and not terminated by HashFinal() yet on the same instance. |
References BOOLEAN(), GetHashInfo(), HASH2_INSTANCE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::HashContext, HASH2_INSTANCE_DATA::HashInfoContext, UINTN(), and HASH2_INSTANCE_DATA::Updated.
EFI_STATUS EFIAPI BaseCrypto2HashUpdate | ( | IN CONST EFI_HASH2_PROTOCOL * | This, | |
IN CONST UINT8 * | Message, | |||
IN UINTN | MessageSize | |||
) |
Updates the hash of a computation in progress by adding a message text.
[in] | This | Points to this instance of EFI_HASH2_PROTOCOL. |
[in] | Message | Points to the start of the message. |
[in] | MessageSize | The size of Message, in bytes. |
EFI_SUCCESS | Digest in progress updated successfully. | |
EFI_INVALID_PARAMETER | This or Hash is NULL. | |
EFI_OUT_OF_RESOURCES | Some resource required by the function is not available or MessageSize is greater than platform maximum. | |
EFI_NOT_READY | This call was not preceded by a valid call to HashInit(), or the operation in progress was terminated by a call to Hash() or HashFinal() on the same instance. |
References BOOLEAN(), HASH2_INSTANCE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::HashContext, HASH2_INSTANCE_DATA::HashInfoContext, TRUE, and HASH2_INSTANCE_DATA::Updated.
typedef BOOLEAN | ( | EFIAPI * | EFI_HASH_FINAL | ) |
Initializes user-supplied memory pointed by Sha1Context as hash context for subsequent use.
If HashContext is NULL, then return FALSE. If this interface is not supported, then return FALSE.
[out] | HashContext | Pointer to Hashcontext being initialized. |
TRUE | Hash context initialization succeeded. | |
FALSE | Hash context initialization failed. | |
FALSE | This interface is not supported. |
This function performs Hash digest on a data buffer of the specified size. It can be called multiple times to compute the digest of long or discontinuous data streams. Hash context should be already correctly intialized by HashInit(), and should not be finalized by HashFinal(). Behavior with invalid context is undefined.
If HashContext is NULL, then return FALSE. If this interface is not supported, then return FALSE.
[in,out] | HashContext | Pointer to the Hash context. |
[in] | Data | Pointer to the buffer containing the data to be hashed. |
[in] | DataSize | Size of Data buffer in bytes. |
TRUE | SHA-1 data digest succeeded. | |
FALSE | SHA-1 data digest failed. | |
FALSE | This interface is not supported. |
This function completes hash computation and retrieves the digest value into the specified memory. After this function has been called, the Hash context cannot be used again. Hash context should be already correctly intialized by HashInit(), and should not be finalized by HashFinal(). Behavior with invalid Hash context is undefined.
If HashContext is NULL, then return FALSE. If HashValue is NULL, then return FALSE. If this interface is not supported, then return FALSE.
[in,out] | HashContext | Pointer to the Hash context. |
[out] | HashValue | Pointer to a buffer that receives the Hash digest value. |
TRUE | Hash digest computation succeeded. | |
FALSE | Hash digest computation failed. | |
FALSE | This interface is not supported. |
Referenced by AddPubKeyInStore(), AutenticatedVariableServiceInitialize(), AuthServiceInternalCompareTimeStamp(), AutoUpdateLangVariable(), BaseCrypto2Hash(), BaseCrypto2HashFinal(), BaseCrypto2HashInit(), BaseCrypto2HashUpdate(), CalculateCertHash(), CalculateDataHash(), CheckDevicePath(), CheckSignatureListFormat(), CleanCertsFromDb(), CompareTimestamp(), DeleteKeyExchangeKey(), DeleteSignature(), DxeTpm2MeasureBootHandler(), DxeTpmMeasureBootHandler(), EsalGetNextVariableName(), EsalGetVariable(), EsalQueryVariableInfo(), ExecutePendingTpmRequest(), ExecutePhysicalPresence(), FilterSignatureList(), FindFiles(), FindFileSystem(), FindVariable(), GenerateCredential(), GetAvailableKeyIndex(), GetTpmState(), GetVariableDataPtr(), GetVariableNamePtr(), GrowBuffer(), HashPeImage(), HaveValidTpmRequest(), IdentifyAndTypeUser(), InitiateTPerReset(), IsAllowedByDb(), IsCertHashFoundInDatabase(), IsCertHashFoundInDbx(), IsCertHashRevoked(), IsContentHashRevoked(), IsDeleteAuthVariable(), IsForbiddenByDbx(), IsRdRandSupported(), IsSignatureFoundInDatabase(), IsTpmUsable(), IsValidSignatureByTimestamp(), IsValidTimestamp(), IsX509CertInDbx(), LoadDeferredImage(), PassTimestampCheck(), PhysicalPresenceCallback(), PhysicalPresencePpiNotifyCallback(), ProcessVariable(), ProcessVarWithKek(), ProcessVarWithPk(), RdRand16Step(), RdRand32Step(), RdRand64Step(), Reclaim(), Rsa2048Sha256GuidedSectionHandler(), SecureBootExtractConfig(), SetVariableCheckHandlerMor(), Tcg2ExecutePendingTpmRequest(), Tcg2HaveValidTpmRequest(), Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction(), Tcg2PhysicalPresenceLibNeedUserConfirm(), Tcg2UserConfirm(), TcgExtractConfig(), TcgMeasurePeImage(), TcgPhysicalPresenceLibNeedUserConfirm(), TcgPhysicalPresenceLibProcessRequest(), TisPcExecute(), TisPcPresenceCheck(), Tpm12TisPcPresenceCheck(), TrEEExecutePendingTpmRequest(), TrEEHaveValidTpmRequest(), TrEEPhysicalPresenceLibNeedUserConfirm(), TrEEUserConfirm(), UpdateDefaultPCRBanks(), UpdateFileExplorer(), UpdateVariable(), UserConfirm(), VerifyCounterBasedPayload(), VerifyDataPayload(), VerifyTimeBasedPayload(), VerifyTimeBasedPayloadAndUpdate(), and VerifyVariable().
EFI_HASH_INFO* GetHashInfo | ( | IN CONST EFI_GUID * | HashAlgorithm | ) |
Returns hash information.
[in] | HashAlgorithm | Points to the EFI_GUID which identifies the algorithm to use. |
References mHashInfo, and UINTN().
Referenced by BaseCrypto2GetHashSize(), BaseCrypto2Hash(), and BaseCrypto2HashInit().
typedef UINTN | ( | EFIAPI * | EFI_HASH_GET_CONTEXT_SIZE | ) |
Retrieves the size, in bytes, of the context buffer required for hash operations.
If this interface is not supported, then return zero.
0 | This interface is not supported. |
Referenced by AccessVariableStore(), AddImageExeInfo(), AddProviderSelection(), AddProviderToPolicy(), AddStr(), AddToForbidLoad(), AesEncrypt(), AesExpandKey(), AppendFileName(), AssignOpRegion(), AssignVarName(), AssignVendorGuid(), AutenticatedVariableServiceInitialize(), AuthServiceInternalUpdateVariableWithTimeStamp(), AuthVariableLibInitialize(), AutoUpdateLangVariable(), BaseCrypto2Hash(), BaseCrypto2HashInit(), CalculateCertHash(), CalculateDataHash(), CallAddUser(), CheckAccessPolicy(), CheckConsole(), CheckCurrentUserAccessRight(), CheckDevicePath(), CheckIdentityPolicy(), CheckNewIdentityPolicy(), CheckPassword(), CheckProfileInfo(), CheckSignatureListFormat(), CheckUserInfo(), CleanCertsFromDb(), CopyAuthSessionCommand(), CopyAuthSessionResponse(), CopyDigestListToBuffer(), CreateMenuEntry(), CreateMenuStringToken(), CreatePkX509SignatureList(), CreateTimeBasedPayload(), CredentialDelete(), CredentialEnroll(), CredentialGetInfo(), CredentialGetNextInfo(), CredentialUser(), DataSizeOfVariable(), DeleteCertsFromDb(), DeleteCredentialFromProviders(), DeleteFromForbidLoad(), DeleteKeyExchangeKey(), DeleteProviderFromPolicy(), DeleteSignature(), DeleteUser(), DeleteUserOnProvider(), DeleteVariable(), DelUserInfo(), DelUserProfile(), DetectTpmDevice(), DisplayLoadForbid(), DisplayLoadPermit(), DriverEntry(), DTpm2RequestUseTpm(), DTpm2SubmitCommand(), DumpEvent(), DumpEvent2(), DumpEventLog(), DumpTcgEfiSpecIdEventStruct(), DxeImageVerificationHandler(), DxeImageVerificationLibImageRead(), DxeTpm2MeasureBootHandler(), DxeTpm2MeasureBootLibImageRead(), DxeTpmMeasureBootHandler(), DxeTpmMeasureBootLibImageRead(), EndofPeiSignalNotifyCallBack(), EnrollImageSignatureToSigDB(), EnrollKeyExchangeKey(), EnrollPlatformKey(), EnrollRsa2048ToKek(), EnrollSignatureDatabase(), EnrollUserOnProvider(), EnrollX509HashtoSigDB(), EnrollX509ToKek(), EnrollX509toSigDB(), EsalGetNextVariableName(), EsalGetVariable(), EsalSetVariable(), EsalVariableCommonEntry(), ExecutePendingTpmRequest(), ExpandMemory(), ExpandTableSize(), ExpandUsermUserProfileDb(), ExpandUserProfile(), FileInfo(), FileSystemVolumeLabelInfo(), FilterSignatureList(), FindFiles(), FindFileSystem(), FindInfoByType(), FindUserInfo(), FindUserInfoByType(), FindUserProfile(), FindVariable(), FindVariableInCache(), FirmwareVolmeInfoPpiNotifyCallback(), FlushHob2Nv(), FtwVariableSpace(), GenerateCredential(), GenerateIdentifier(), GenerateUserId(), GetAccessControl(), GetAccessRight(), GetAllUserInfo(), GetAvailableKeyIndex(), GetCertsFromDb(), GetDigestListBinSize(), GetDigestListSize(), GetFileData(), GetFileName(), GetFvbHandleByAddress(), GetHashInfo(), GetHashSizeFromAlgo(), GetIdentifyType(), GetImageExeInfoTableSize(), GetIndexFromSupportedLangCodes(), GetLangFromSupportedLangCodes(), GetLbaAndOffsetByAddress(), GetMenuEntry(), GetPassword(), GetPcrEvent2Size(), GetProcessorsCpuLocation(), GetSignaturelistOffset(), GetToken(), GetUserName(), GetUserNameInput(), GuidToString(), HashAndExtend(), HashCompleteAndExtend(), HashPeImage(), HashStart(), HashUpdate(), IdentifyAndTypeUser(), IdentifyByProviderId(), IdentifyOrTypeUser(), IdentifyUser(), InCustomMode(), InitCredentialTable(), InitializeTcgSmm(), InitiateTPerReset(), InitProviderInfo(), InitUserProfileDb(), InsertCertsToDb(), InstallAcpiTable(), InstallTcg2ConfigForm(), InternalDumpData(), InternalDumpHex(), IsAllowedByDb(), IsAnyMorVariable(), IsBootOption(), IsCertHashFoundInDatabase(), IsCertHashFoundInDbx(), IsCertHashRevoked(), IsContentHashRevoked(), IsDataMeasured(), IsDeleteAuthVariable(), IsDerEncodeCertificate(), IsDevicePathInList(), IsDtpmPresent(), IsForbiddenByDbx(), IsLoadForbidden(), IsSecureAuthorityVariable(), IsSignatureFoundInDatabase(), IsValidTimestamp(), IsX509CertInDbx(), IsZeroBuffer(), LoadDeferredImage(), LockTpmPhysicalPresence(), LogHashEvent(), MeasureAllBootVariables(), MeasureAllSecureVariables(), MeasureFvImage(), MeasureHandoffTables(), MeasureMainBios(), MeasurePeImageAndExtend(), MeasureVariable(), MemoryClearCallback(), ModifyIdentityPolicy(), ModifyUserInfo(), ModifyUserName(), MorDriverEntryPoint(), NameSizeOfVariable(), OnReadyToBoot(), P7CheckRevocation(), P7CheckTrust(), PassTimestampCheck(), PeimEntryMA(), PeimEntryMP(), PhysicalPresenceCallback(), PhysicalPresencePpiNotifyCallback(), ProcessVarWithKek(), ProcessVarWithPk(), ProviderAlreadyInPolicy(), PublishAcpiTable(), PublishTpm2(), PutDefferedImageInfo(), RdRandGenerateEntropy(), RdRandGetBytes(), ReadFileContent(), ReadUserKey(), Reclaim(), ReclaimForOS(), RegisterHashInterfaceLib(), ResolveAccessPolicy(), ResolveDate(), ResolveIdentityPolicy(), RngGetInfo(), Rsa2048Sha256GuidedSectionHandler(), SaveAccessPolicy(), SavePpRequest(), SaveTrEEPpRequest(), SecureBootCallback(), SecureBootExtractConfig(), SecureBootRouteConfig(), SetTpm2HashMask(), SetupEventLog(), SetVariableCheckHandlerMor(), Sha1HashInit(), Sha256HashInit(), StrDuplicate(), StringToGuid(), Tcg2ConfigDriverEntryPoint(), Tcg2ConfigPeimEntryPoint(), Tcg2ExecutePendingTpmRequest(), Tcg2GetEventLog(), Tcg2HashLogExtendEvent(), Tcg2MeasureGptTable(), Tcg2PhysicalPresenceLibGetManagementFlags(), Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction(), Tcg2PhysicalPresenceLibNeedUserConfirm(), Tcg2PhysicalPresenceLibProcessRequest(), Tcg2PhysicalPresenceLibReturnOperationResponseToOsFunction(), Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction(), Tcg2UserConfirm(), TcgCommLogEvent(), TcgConfigDriverEntryPoint(), TcgDxeHashAll(), TcgDxeHashLogExtendEvent(), TcgDxeHashLogExtendEventI(), TcgDxeLogEvent(), TcgDxeLogEventI(), TcgDxeLogHashEvent(), TcgDxePassThroughToTpm(), TcgDxeStatusCheck(), TcgExtractConfig(), TcgMeasureGptTable(), TcgMeasurePeImage(), TcgPhysicalPresenceLibNeedUserConfirm(), TcgPhysicalPresenceLibProcessRequest(), TcgRouteConfig(), TisPcExecute(), TisPcPrepareCommand(), TisPcPresenceCheck(), TisPcReadBurstCount(), TisPcReceive(), TisPcReceiveV(), TisPcRequestUseTpm(), TisPcSend(), TisPcSendV(), TisPcWaitRegisterBits(), TisTpmCommand(), TPerResetAtEndOfDxe(), Tpm12MeasureAndLogData(), Tpm12RequestUseTpm(), Tpm12SubmitCommand(), Tpm12TisPcPrepareCommand(), Tpm12TisPcPresenceCheck(), Tpm12TisPcReadBurstCount(), Tpm12TisPcRequestUseTpm(), Tpm12TisPcWaitRegisterBits(), Tpm12TisTpmCommand(), Tpm20MeasureAndLogData(), Tpm2DictionaryAttackLockReset(), Tpm2DictionaryAttackParameters(), Tpm2GetAlgoFromHashMask(), Tpm2GetCapabilityPcrs(), Tpm2GetCapabilitySupportedAlg(), Tpm2GetDigestFromDigestList(), Tpm2GetHashMaskFromAlgo(), Tpm2PcrAllocate(), Tpm2PcrEvent(), Tpm2PcrExtend(), Tpm2PcrRead(), Tpm2PolicyOR(), Tpm2PolicySecret(), Tpm2SetAlgorithmSet(), Tpm2SetPrimaryPolicy(), Tpm2StartAuthSession(), Tpm2TestParms(), TpmCommExtend(), TpmCommHashAll(), TpmCommLogEvent(), TrEEConfigDriverEntryPoint(), TrEEConfigPeimEntryPoint(), TrEEExecutePendingTpmRequest(), TreeGetEventLog(), TreeHashLogExtendEvent(), TrEEPhysicalPresenceLibNeedUserConfirm(), TrEEPhysicalPresenceLibProcessRequest(), TrEEUserConfirm(), UefiMain(), UpdateCredentialProvider(), UpdateDefaultPCRBanks(), UpdateDeletePage(), UpdateFileExplorePage(), UpdatePlatformMode(), UpdateUserInfo(), UpdateVariable(), UpdateVariableCache(), UserConfirm(), UserProfileFind(), VariableClassAddressChangeEvent(), VariableCommonInitialize(), VariableGetBestLanguage(), VerifyBuffer(), VerifyCounterBasedPayload(), VerifyDataPayload(), VerifyTimeBasedPayload(), and VerifyTimeBasedPayloadAndUpdate().
EFI_HASH2_PROTOCOL mHash2Protocol |
Initial value:
{ BaseCrypto2GetHashSize, BaseCrypto2Hash, BaseCrypto2HashInit, BaseCrypto2HashUpdate, BaseCrypto2HashFinal, }
Referenced by Hash2ServiceBindingCreateChild().
EFI_HASH_INFO mHashInfo[] |
Initial value:
{ {&gEfiHashAlgorithmMD5Guid, sizeof(EFI_MD5_HASH2), Md5GetContextSize, Md5Init, Md5Update, Md5Final }, {&gEfiHashAlgorithmSha1Guid, sizeof(EFI_SHA1_HASH2), Sha1GetContextSize, Sha1Init, Sha1Update, Sha1Final }, {&gEfiHashAlgorithmSha256Guid, sizeof(EFI_SHA256_HASH2), Sha256GetContextSize, Sha256Init, Sha256Update, Sha256Final }, {&gEfiHashAlgorithmSha384Guid, sizeof(EFI_SHA384_HASH2), Sha384GetContextSize, Sha384Init, Sha384Update, Sha384Final }, {&gEfiHashAlgorithmSha512Guid, sizeof(EFI_SHA512_HASH2), Sha512GetContextSize, Sha512Init, Sha512Update, Sha512Final }, }