Home
last modified time | relevance | path

Searched refs:DigestList (Results 1 – 16 of 16) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/HashLibTpm2/
DHashLibTpm2.c153 OUT TPML_DIGEST_VALUES *DigestList in HashCompleteAndExtend() argument
184 ZeroMem(DigestList, sizeof(*DigestList)); in HashCompleteAndExtend()
185 DigestList->count = HASH_COUNT; in HashCompleteAndExtend()
192 DigestList in HashCompleteAndExtend()
204 DigestList->count = 1; in HashCompleteAndExtend()
205 DigestList->digests[0].hashAlg = AlgoId; in HashCompleteAndExtend()
206 CopyMem (&DigestList->digests[0].digest, Result.buffer, Result.size); in HashCompleteAndExtend()
209 DigestList in HashCompleteAndExtend()
234 OUT TPML_DIGEST_VALUES *DigestList in HashAndExtend() argument
255 Status = Tpm2PcrEvent (PcrIndex, &EventData, DigestList); in HashAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Help.c252 IN TPML_DIGEST_VALUES *DigestList, in CopyDigestListToBuffer() argument
263 Buffer = (UINT8 *)Buffer + sizeof(DigestList->count); in CopyDigestListToBuffer()
264 for (Index = 0; Index < DigestList->count; Index++) { in CopyDigestListToBuffer()
265 …if (!IsHashAlgSupportedInHashAlgorithmMask(DigestList->digests[Index].hashAlg, HashAlgorithmMask))… in CopyDigestListToBuffer()
266 …WARNING: TPM2 Event log has HashAlg unsupported by PCR bank (0x%x)\n", DigestList->digests[Index].… in CopyDigestListToBuffer()
269 … CopyMem (Buffer, &DigestList->digests[Index].hashAlg, sizeof(DigestList->digests[Index].hashAlg)); in CopyDigestListToBuffer()
270 Buffer = (UINT8 *)Buffer + sizeof(DigestList->digests[Index].hashAlg); in CopyDigestListToBuffer()
271 DigestSize = GetHashSizeFromAlgo (DigestList->digests[Index].hashAlg); in CopyDigestListToBuffer()
272 CopyMem (Buffer, &DigestList->digests[Index].digest, DigestSize); in CopyDigestListToBuffer()
291 IN TPML_DIGEST_VALUES *DigestList in GetDigestListSize() argument
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha256/
DHashInstanceLibSha256.c33 IN TPML_DIGEST_VALUES *DigestList, in Tpm2SetSha256ToDigestList() argument
37 DigestList->count = 1; in Tpm2SetSha256ToDigestList()
38 DigestList->digests[0].hashAlg = TPM_ALG_SHA256; in Tpm2SetSha256ToDigestList()
40 DigestList->digests[0].digest.sha256, in Tpm2SetSha256ToDigestList()
111 OUT TPML_DIGEST_VALUES *DigestList in Sha256HashFinal() argument
122 Tpm2SetSha256ToDigestList (DigestList, Digest); in Sha256HashFinal()
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha1/
DHashInstanceLibSha1.c33 IN TPML_DIGEST_VALUES *DigestList, in Tpm2SetSha1ToDigestList() argument
37 DigestList->count = 1; in Tpm2SetSha1ToDigestList()
38 DigestList->digests[0].hashAlg = TPM_ALG_SHA1; in Tpm2SetSha1ToDigestList()
40 DigestList->digests[0].digest.sha1, in Tpm2SetSha1ToDigestList()
111 OUT TPML_DIGEST_VALUES *DigestList in Sha1HashFinal() argument
122 Tpm2SetSha1ToDigestList (DigestList, Digest); in Sha1HashFinal()
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashLibBaseCryptoRouter/
DHashLibBaseCryptoRouterCommon.c67 IN OUT TPML_DIGEST_VALUES *DigestList, in Tpm2SetHashToDigestList() argument
72 &DigestList->digests[DigestList->count], in Tpm2SetHashToDigestList()
76 DigestList->count ++; in Tpm2SetHashToDigestList()
DHashLibBaseCryptoRouterDxe.c123 OUT TPML_DIGEST_VALUES *DigestList in HashCompleteAndExtend() argument
137 ZeroMem (DigestList, sizeof(*DigestList)); in HashCompleteAndExtend()
144 Tpm2SetHashToDigestList (DigestList, &Digest); in HashCompleteAndExtend()
152 DigestList in HashCompleteAndExtend()
173 OUT TPML_DIGEST_VALUES *DigestList in HashAndExtend() argument
185 Status = HashCompleteAndExtend (HashHandle, PcrIndex, NULL, 0, DigestList); in HashAndExtend()
DHashLibBaseCryptoRouterPei.c162 OUT TPML_DIGEST_VALUES *DigestList in HashCompleteAndExtend() argument
182 ZeroMem (DigestList, sizeof(*DigestList)); in HashCompleteAndExtend()
189 Tpm2SetHashToDigestList (DigestList, &Digest); in HashCompleteAndExtend()
197 DigestList in HashCompleteAndExtend()
218 OUT TPML_DIGEST_VALUES *DigestList in HashAndExtend() argument
236 Status = HashCompleteAndExtend (HashHandle, PcrIndex, NULL, 0, DigestList); in HashAndExtend()
DHashLibBaseCryptoRouterCommon.h40 IN OUT TPML_DIGEST_VALUES *DigestList,
/device/linaro/bootloader/edk2/SecurityPkg/Include/Library/
DHashLib.h74 OUT TPML_DIGEST_VALUES *DigestList
93 OUT TPML_DIGEST_VALUES *DigestList
139 OUT TPML_DIGEST_VALUES *DigestList
DTpm2CommandLib.h1051 IN TPML_DIGEST_VALUES *DigestList,
1065 IN TPML_DIGEST_VALUES *DigestList
1082 IN TPML_DIGEST_VALUES *DigestList,
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Pei/
DTcg2Pei.c282 IN TPML_DIGEST_VALUES *DigestList, in LogHashEvent() argument
303 Status = GetDigestFromDigestList (TPM_ALG_SHA1, DigestList, &NewEventHdr->Digest); in LogHashEvent()
326 …ent2->PCRIndex) + sizeof(TcgPcrEvent2->EventType) + GetDigestListSize (DigestList) + sizeof(TcgPcr… in LogHashEvent()
337 … DigestBuffer = CopyDigestListToBuffer (DigestBuffer, DigestList, PcdGet32 (PcdTpm2HashMask)); in LogHashEvent()
376 TPML_DIGEST_VALUES DigestList; in HashLogExtendEvent() local
386 &DigestList in HashLogExtendEvent()
390 Status = LogHashEvent (&DigestList, NewEventHdr, NewEventData); in HashLogExtendEvent()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEPei/
DTrEEPei.c202 IN TPML_DIGEST_VALUES *DigestList, in LogHashEvent() argument
217 Status = GetDigestFromDigestList (TPM_ALG_SHA1, DigestList, &NewEventHdr->Digest); in LogHashEvent()
266 TPML_DIGEST_VALUES DigestList; in HashLogExtendEvent() local
276 &DigestList in HashLogExtendEvent()
280 Status = LogHashEvent (&DigestList, NewEventHdr, NewEventData); in HashLogExtendEvent()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DTrEEDxe.c198 OUT TPML_DIGEST_VALUES *DigestList
639 IN TPML_DIGEST_VALUES *DigestList, in TcgDxeLogHashEvent() argument
654 Status = GetDigestFromDigestList (TPM_ALG_SHA1, DigestList, &NewEventHdr->Digest); in TcgDxeLogHashEvent()
708 TPML_DIGEST_VALUES DigestList; in TcgDxeHashLogExtendEvent() local
718 &DigestList in TcgDxeHashLogExtendEvent()
722 Status = TcgDxeLogHashEvent (&DigestList, NewEventHdr, NewEventData); in TcgDxeHashLogExtendEvent()
769 TPML_DIGEST_VALUES DigestList; in TreeHashLogExtendEvent() local
797 &DigestList in TreeHashLogExtendEvent()
801 Status = TcgDxeLogHashEvent (&DigestList, &NewEventHdr, Event->Event); in TreeHashLogExtendEvent()
DMeasureBootPeCoff.c106 OUT TPML_DIGEST_VALUES *DigestList in MeasurePeImageAndExtend() argument
416 Status = HashCompleteAndExtend (HashHandle, PCRIndex, NULL, 0, DigestList); in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c106 OUT TPML_DIGEST_VALUES *DigestList in MeasurePeImageAndExtend() argument
416 Status = HashCompleteAndExtend (HashHandle, PCRIndex, NULL, 0, DigestList); in MeasurePeImageAndExtend()
DTcg2Dxe.c146 OUT TPML_DIGEST_VALUES *DigestList
966 IN TPML_DIGEST_VALUES *DigestList, in TcgDxeLogHashEvent() argument
987 Status = GetDigestFromDigestList (TPM_ALG_SHA1, DigestList, &NewEventHdr->Digest); in TcgDxeLogHashEvent()
1014 …EventSizePtr = CopyDigestListToBuffer (DigestBuffer, DigestList, mTcgDxeData.BsCap.ActivePcrBanks); in TcgDxeLogHashEvent()
1069 TPML_DIGEST_VALUES DigestList; in TcgDxeHashLogExtendEvent() local
1079 &DigestList in TcgDxeHashLogExtendEvent()
1083 Status = TcgDxeLogHashEvent (&DigestList, NewEventHdr, NewEventData); in TcgDxeHashLogExtendEvent()
1130 TPML_DIGEST_VALUES DigestList; in Tcg2HashLogExtendEvent() local
1158 &DigestList in Tcg2HashLogExtendEvent()
1162 Status = TcgDxeLogHashEvent (&DigestList, &NewEventHdr, Event->Event); in Tcg2HashLogExtendEvent()