Searched refs:Sha1Ctx (Results 1 – 6 of 6) sorted by relevance
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha1/ |
D | HashInstanceLibSha1.c | 60 VOID *Sha1Ctx; in Sha1HashInit() local 64 Sha1Ctx = AllocatePool (CtxSize); in Sha1HashInit() 65 ASSERT (Sha1Ctx != NULL); in Sha1HashInit() 67 Sha1Init (Sha1Ctx); in Sha1HashInit() 69 *HashHandle = (HASH_HANDLE)Sha1Ctx; in Sha1HashInit() 91 VOID *Sha1Ctx; in Sha1HashUpdate() local 93 Sha1Ctx = (VOID *)HashHandle; in Sha1HashUpdate() 94 Sha1Update (Sha1Ctx, DataToHash, DataToHashLen); in Sha1HashUpdate() 115 VOID *Sha1Ctx; in Sha1HashFinal() local 117 Sha1Ctx = (VOID *)HashHandle; in Sha1HashFinal() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/TpmCommLib/ |
D | TpmComm.c | 35 VOID *Sha1Ctx; in TpmCommHashAll() local 39 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll() 40 ASSERT (Sha1Ctx != NULL); in TpmCommHashAll() 42 Sha1Init (Sha1Ctx); in TpmCommHashAll() 43 Sha1Update (Sha1Ctx, Data, DataLen); in TpmCommHashAll() 44 Sha1Final (Sha1Ctx, (UINT8 *)Digest); in TpmCommHashAll() 46 FreePool (Sha1Ctx); in TpmCommHashAll()
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 312 VOID *Sha1Ctx; in TcgMeasurePeImage() local 335 Sha1Ctx = NULL; in TcgMeasurePeImage() 406 Sha1Ctx = AllocatePool (CtxSize); in TcgMeasurePeImage() 407 if (Sha1Ctx == NULL) { in TcgMeasurePeImage() 412 HashStatus = Sha1Init (Sha1Ctx); in TcgMeasurePeImage() 455 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage() 483 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage() 507 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage() 532 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage() 604 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage() [all …]
|
/device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/ |
D | RsaVerify.c | 98 VOID *Sha1Ctx; in ValidateCryptRsa() local 308 Sha1Ctx = AllocatePool (CtxSize); in ValidateCryptRsa() 310 Status = Sha1Init (Sha1Ctx); in ValidateCryptRsa() 316 Status = Sha1Update (Sha1Ctx, RsaSignData, AsciiStrLen (RsaSignData)); in ValidateCryptRsa() 322 Status = Sha1Final (Sha1Ctx, HashValue); in ValidateCryptRsa() 328 FreePool (Sha1Ctx); in ValidateCryptRsa()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgPei/ |
D | TcgPei.c | 219 VOID *Sha1Ctx; in TpmCommHashAll() local 223 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll() 224 ASSERT (Sha1Ctx != NULL); in TpmCommHashAll() 226 Sha1Init (Sha1Ctx); in TpmCommHashAll() 227 Sha1Update (Sha1Ctx, Data, DataLen); in TpmCommHashAll() 228 Sha1Final (Sha1Ctx, (UINT8 *)Digest); in TpmCommHashAll() 230 FreePool (Sha1Ctx); in TpmCommHashAll()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgDxe/ |
D | TcgDxe.c | 292 VOID *Sha1Ctx; in TpmCommHashAll() local 296 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll() 297 ASSERT (Sha1Ctx != NULL); in TpmCommHashAll() 299 Sha1Init (Sha1Ctx); in TpmCommHashAll() 300 Sha1Update (Sha1Ctx, Data, DataLen); in TpmCommHashAll() 301 Sha1Final (Sha1Ctx, (UINT8 *)Digest); in TpmCommHashAll() 303 FreePool (Sha1Ctx); in TpmCommHashAll()
|