Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/
DHashVerify.c88 UINTN CtxSize; in ValidateCryptDigest() local
103 CtxSize = Md4GetContextSize (); in ValidateCryptDigest()
104 HashCtx = AllocatePool (CtxSize); in ValidateCryptDigest()
155 CtxSize = Md5GetContextSize (); in ValidateCryptDigest()
156 HashCtx = AllocatePool (CtxSize); in ValidateCryptDigest()
207 CtxSize = Sha1GetContextSize (); in ValidateCryptDigest()
208 HashCtx = AllocatePool (CtxSize); in ValidateCryptDigest()
259 CtxSize = Sha256GetContextSize (); in ValidateCryptDigest()
260 HashCtx = AllocatePool (CtxSize); in ValidateCryptDigest()
311 CtxSize = Sha384GetContextSize (); in ValidateCryptDigest()
[all …]
DHmacVerify.c85 UINTN CtxSize; in ValidateCryptHmac() local
98 CtxSize = HmacMd5GetContextSize (); in ValidateCryptHmac()
99 HmacCtx = AllocatePool (CtxSize); in ValidateCryptHmac()
138 CtxSize = HmacSha1GetContextSize (); in ValidateCryptHmac()
139 HmacCtx = AllocatePool (CtxSize); in ValidateCryptHmac()
177 CtxSize = HmacSha256GetContextSize (); in ValidateCryptHmac()
178 HmacCtx = AllocatePool (CtxSize); in ValidateCryptHmac()
DBlockCipherVerify.c146 UINTN CtxSize; in ValidateCryptBlockCipher() local
154 CtxSize = TdesGetContextSize (); in ValidateCryptBlockCipher()
155 CipherCtx = AllocatePool (CtxSize); in ValidateCryptBlockCipher()
272 CtxSize = AesGetContextSize (); in ValidateCryptBlockCipher()
273 CipherCtx = AllocatePool (CtxSize); in ValidateCryptBlockCipher()
428 CtxSize = Arc4GetContextSize (); in ValidateCryptBlockCipher()
429 CipherCtx = AllocatePool (CtxSize); in ValidateCryptBlockCipher()
DRsaVerify.c97 UINTN CtxSize; in ValidateCryptRsa() local
307 CtxSize = Sha1GetContextSize (); in ValidateCryptRsa()
308 Sha1Ctx = AllocatePool (CtxSize); in ValidateCryptRsa()
/device/linaro/bootloader/edk2/SecurityPkg/Library/TpmCommLib/
DTpmComm.c36 UINTN CtxSize; in TpmCommHashAll() local
38 CtxSize = Sha1GetContextSize (); in TpmCommHashAll()
39 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll()
/device/linaro/bootloader/edk2/SecurityPkg/Hash2DxeCrypto/
DHash2DxeCrypto.c358 UINTN CtxSize; in BaseCrypto2Hash() local
388 CtxSize = HashInfo->GetContextSize (); in BaseCrypto2Hash()
389 if (CtxSize == 0) { in BaseCrypto2Hash()
392 HashCtx = AllocatePool (CtxSize); in BaseCrypto2Hash()
455 UINTN CtxSize; in BaseCrypto2HashInit() local
483 CtxSize = HashInfo->GetContextSize (); in BaseCrypto2HashInit()
484 if (CtxSize == 0) { in BaseCrypto2HashInit()
487 HashCtx = AllocatePool (CtxSize); in BaseCrypto2HashInit()
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha1/
DHashInstanceLibSha1.c61 UINTN CtxSize; in Sha1HashInit() local
63 CtxSize = Sha1GetContextSize (); in Sha1HashInit()
64 Sha1Ctx = AllocatePool (CtxSize); in Sha1HashInit()
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha256/
DHashInstanceLibSha256.c61 UINTN CtxSize; in Sha256HashInit() local
63 CtxSize = Sha256GetContextSize (); in Sha256HashInit()
64 Sha256Ctx = AllocatePool (CtxSize); in Sha256HashInit()
/device/linaro/bootloader/edk2/SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/
DPkcs7VerifyDxe.c50 UINTN CtxSize; in CalculateDataHash() local
59 CtxSize = Sha1GetContextSize (); in CalculateDataHash()
60 HashCtx = AllocatePool (CtxSize); in CalculateDataHash()
72 CtxSize = Sha256GetContextSize (); in CalculateDataHash()
73 HashCtx = AllocatePool (CtxSize); in CalculateDataHash()
85 CtxSize = Sha384GetContextSize (); in CalculateDataHash()
86 HashCtx = AllocatePool (CtxSize); in CalculateDataHash()
98 CtxSize = Sha512GetContextSize (); in CalculateDataHash()
99 HashCtx = AllocatePool (CtxSize); in CalculateDataHash()
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/
DAuthVariableLib.c145 UINTN CtxSize; in AuthVariableLibInitialize() local
160 CtxSize = Sha256GetContextSize (); in AuthVariableLibInitialize()
161 mHashCtx = AllocateRuntimePool (CtxSize); in AuthVariableLibInitialize()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgPei/
DTcgPei.c220 UINTN CtxSize; in TpmCommHashAll() local
222 CtxSize = Sha1GetContextSize (); in TpmCommHashAll()
223 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DAuthService.c47 UINTN CtxSize; in AutenticatedVariableServiceInitialize() local
60 CtxSize = Sha256GetContextSize (); in AutenticatedVariableServiceInitialize()
61 mVariableModuleGlobal->HashContext[Physical] = AllocateRuntimePool (CtxSize); in AutenticatedVariableServiceInitialize()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c313 UINTN CtxSize; in TcgMeasurePeImage() local
405 CtxSize = Sha1GetContextSize (); in TcgMeasurePeImage()
406 Sha1Ctx = AllocatePool (CtxSize); in TcgMeasurePeImage()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgDxe/
DTcgDxe.c293 UINTN CtxSize; in TpmCommHashAll() local
295 CtxSize = Sha1GetContextSize (); in TpmCommHashAll()
296 Sha1Ctx = AllocatePool (CtxSize); in TpmCommHashAll()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1089 UINTN CtxSize; in CalculateCertHash() local
1110 CtxSize = mHash[HashAlg].GetContextSize (); in CalculateCertHash()
1111 HashCtx = AllocatePool (CtxSize); in CalculateCertHash()
1777 UINTN CtxSize; in HashPeImage() local
1806 CtxSize = mHash[HashAlg].GetContextSize(); in HashPeImage()
1808 HashCtx = AllocatePool (CtxSize); in HashPeImage()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c301 UINTN CtxSize; in HashPeImage() local
350 CtxSize = mHash[HashAlg].GetContextSize(); in HashPeImage()
352 HashCtx = AllocatePool (CtxSize); in HashPeImage()