Home
last modified time | relevance | path

Searched refs:HashContext (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/
DFmpAuthenticationLibRsa2048Sha256.c82 VOID *HashContext; in FmpAuthenticatedHandlerRsa2048Sha256() local
98 HashContext = NULL; in FmpAuthenticatedHandlerRsa2048Sha256()
104 HashContext = AllocatePool (Sha256GetContextSize ()); in FmpAuthenticatedHandlerRsa2048Sha256()
105 if (HashContext == NULL) { in FmpAuthenticatedHandlerRsa2048Sha256()
116 CryptoStatus = Sha256Init (HashContext); in FmpAuthenticatedHandlerRsa2048Sha256()
122 …CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2… in FmpAuthenticatedHandlerRsa2048Sha256()
128 CryptoStatus = Sha256Final (HashContext, Digest); in FmpAuthenticatedHandlerRsa2048Sha256()
187 CryptoStatus = Sha256Init (HashContext); in FmpAuthenticatedHandlerRsa2048Sha256()
196 HashContext, in FmpAuthenticatedHandlerRsa2048Sha256()
206 HashContext, in FmpAuthenticatedHandlerRsa2048Sha256()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/
DPeiRsa2048Sha256GuidedSectionExtractLib.c141 VOID *HashContext; in Rsa2048Sha256GuidedSectionHandler() local
144 HashContext = NULL; in Rsa2048Sha256GuidedSectionHandler()
222 HashContext = AllocatePool (Sha256GetContextSize ()); in Rsa2048Sha256GuidedSectionHandler()
223 if (HashContext == NULL) { in Rsa2048Sha256GuidedSectionHandler()
233 CryptoStatus = Sha256Init (HashContext); in Rsa2048Sha256GuidedSectionHandler()
239 …CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2… in Rsa2048Sha256GuidedSectionHandler()
245 CryptoStatus = Sha256Final (HashContext, Digest); in Rsa2048Sha256GuidedSectionHandler()
308 CryptoStatus = Sha256Init (HashContext); in Rsa2048Sha256GuidedSectionHandler()
315 CryptoStatus = Sha256Update (HashContext, *OutputBuffer, OutputBufferSize); in Rsa2048Sha256GuidedSectionHandler()
322 CryptoStatus = Sha256Final (HashContext, Digest); in Rsa2048Sha256GuidedSectionHandler()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Hash2DxeCrypto/
DHash2DxeCrypto.c59 OUT VOID *HashContext
85 IN OUT VOID *HashContext,
115 IN OUT VOID *HashContext,
379 if (Instance->HashContext != NULL) { in BaseCrypto2Hash()
380 FreePool (Instance->HashContext); in BaseCrypto2Hash()
383 Instance->HashContext = NULL; in BaseCrypto2Hash()
406 Instance->HashContext = HashCtx; in BaseCrypto2Hash()
426 Instance->HashContext = NULL; in BaseCrypto2Hash()
476 if ((Instance->HashContext != NULL) || (Instance->HashInfoContext != NULL)) { in BaseCrypto2HashInit()
501 Instance->HashContext = HashCtx; in BaseCrypto2HashInit()
[all …]
DDriver.h58 VOID *HashContext; member
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/
DDxeRsa2048Sha256GuidedSectionExtractLib.c144 VOID *HashContext; in Rsa2048Sha256GuidedSectionHandler() local
147 HashContext = NULL; in Rsa2048Sha256GuidedSectionHandler()
238 HashContext = AllocatePool (Sha256GetContextSize ()); in Rsa2048Sha256GuidedSectionHandler()
239 if (HashContext == NULL) { in Rsa2048Sha256GuidedSectionHandler()
249 CryptoStatus = Sha256Init (HashContext); in Rsa2048Sha256GuidedSectionHandler()
255 …CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2… in Rsa2048Sha256GuidedSectionHandler()
261 CryptoStatus = Sha256Final (HashContext, Digest); in Rsa2048Sha256GuidedSectionHandler()
324 CryptoStatus = Sha256Init (HashContext); in Rsa2048Sha256GuidedSectionHandler()
331 CryptoStatus = Sha256Update (HashContext, *OutputBuffer, OutputBufferSize); in Rsa2048Sha256GuidedSectionHandler()
338 CryptoStatus = Sha256Final (HashContext, Digest); in Rsa2048Sha256GuidedSectionHandler()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Include/Ppi/
DSha256Hash.h73 IN OUT VOID *HashContext
94 IN OUT VOID *HashContext,
117 IN OUT VOID *HashContext,
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecCryptIo.c453 UINT8 *HashContext; in IpSecCryptoIoHmac() local
491 HashContext = AllocateZeroPool (ContextSize); in IpSecCryptoIoHmac()
493 if (HashContext == NULL) { in IpSecCryptoIoHmac()
501 if (mIpsecAuthAlgorithmList[Index].HmacInitiate(HashContext, Key, KeyLength)) { in IpSecCryptoIoHmac()
504 HashContext, in IpSecCryptoIoHmac()
512 if (mIpsecAuthAlgorithmList[Index].HmacFinal (HashContext, OutHashData)) { in IpSecCryptoIoHmac()
529 if (HashContext != NULL) { in IpSecCryptoIoHmac()
530 FreePool (HashContext); in IpSecCryptoIoHmac()
573 UINT8 *HashContext; in IpSecCryptoIoHash() local
609 HashContext = AllocateZeroPool (ContextSize); in IpSecCryptoIoHash()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.h119 IN OUT VOID *HashContext
141 IN OUT VOID *HashContext,
164 IN OUT VOID *HashContext,
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DAuthService.c61 mVariableModuleGlobal->HashContext[Physical] = AllocateRuntimePool (CtxSize); in AutenticatedVariableServiceInitialize()
62 ASSERT (mVariableModuleGlobal->HashContext[Physical] != NULL); in AutenticatedVariableServiceInitialize()
312 VOID *HashContext; in VerifyDataPayload() local
342 HashContext = Global->HashContext[VirtualMode]; in VerifyDataPayload()
343 Status = Sha256Init (HashContext); in VerifyDataPayload()
347 Status = Sha256Update (HashContext, Data + AUTHINFO_SIZE, (UINTN) (DataSize - AUTHINFO_SIZE)); in VerifyDataPayload()
354 Status = Sha256Update (HashContext, &CertData->MonotonicCount, sizeof (UINT64)); in VerifyDataPayload()
358 Status = Sha256Final (HashContext, Digest); in VerifyDataPayload()
DInitVariable.c179 mVariableModuleGlobal->HashContext[Virtual] = mVariableModuleGlobal->HashContext[Physical]; in VariableClassAddressChangeEvent()
180 EfiConvertPointer (0x0, (VOID **) &mVariableModuleGlobal->HashContext[Virtual]); in VariableClassAddressChangeEvent()
DVariable.h112 VOID *HashContext[2]; // Hash context pointer member
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.h199 IN OUT VOID *HashContext
221 IN OUT VOID *HashContext,
244 IN OUT VOID *HashContext,