/device/linaro/bootloader/edk2/SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/ |
FmpAuthenticationLibRsa2048Sha256.c | 82 VOID *HashContext;
98 HashContext = NULL;
104 HashContext = AllocatePool (Sha256GetContextSize ());
105 if (HashContext == NULL) {
116 CryptoStatus = Sha256Init (HashContext);
122 CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2048Sha256->PublicKey));
128 CryptoStatus = Sha256Final (HashContext, Digest);
187 CryptoStatus = Sha256Init (HashContext);
196 HashContext,
206 HashContext,
[all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/ |
PeiRsa2048Sha256GuidedSectionExtractLib.c | 141 VOID *HashContext;
144 HashContext = NULL;
222 HashContext = AllocatePool (Sha256GetContextSize ());
223 if (HashContext == NULL) {
233 CryptoStatus = Sha256Init (HashContext);
239 CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2048Sha256->PublicKey));
245 CryptoStatus = Sha256Final (HashContext, Digest);
308 CryptoStatus = Sha256Init (HashContext);
315 CryptoStatus = Sha256Update (HashContext, *OutputBuffer, OutputBufferSize);
322 CryptoStatus = Sha256Final (HashContext, Digest); [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Hash2DxeCrypto/ |
Driver.h | 58 VOID *HashContext;
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/ |
DxeRsa2048Sha256GuidedSectionExtractLib.c | 144 VOID *HashContext;
147 HashContext = NULL;
238 HashContext = AllocatePool (Sha256GetContextSize ());
239 if (HashContext == NULL) {
249 CryptoStatus = Sha256Init (HashContext);
255 CryptoStatus = Sha256Update (HashContext, &CertBlockRsa2048Sha256->PublicKey, sizeof(CertBlockRsa2048Sha256->PublicKey));
261 CryptoStatus = Sha256Final (HashContext, Digest);
324 CryptoStatus = Sha256Init (HashContext);
331 CryptoStatus = Sha256Update (HashContext, *OutputBuffer, OutputBufferSize);
338 CryptoStatus = Sha256Final (HashContext, Digest); [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
IpSecCryptIo.c | 453 UINT8 *HashContext;
491 HashContext = AllocateZeroPool (ContextSize);
493 if (HashContext == NULL) {
501 if (mIpsecAuthAlgorithmList[Index].HmacInitiate(HashContext, Key, KeyLength)) {
504 HashContext,
512 if (mIpsecAuthAlgorithmList[Index].HmacFinal (HashContext, OutHashData)) {
529 if (HashContext != NULL) {
530 FreePool (HashContext);
573 UINT8 *HashContext;
609 HashContext = AllocateZeroPool (ContextSize); [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/ |
AuthService.c | 61 mVariableModuleGlobal->HashContext[Physical] = AllocateRuntimePool (CtxSize);
62 ASSERT (mVariableModuleGlobal->HashContext[Physical] != NULL);
312 VOID *HashContext;
342 HashContext = Global->HashContext[VirtualMode];
343 Status = Sha256Init (HashContext);
347 Status = Sha256Update (HashContext, Data + AUTHINFO_SIZE, (UINTN) (DataSize - AUTHINFO_SIZE));
354 Status = Sha256Update (HashContext, &CertData->MonotonicCount, sizeof (UINT64));
358 Status = Sha256Final (HashContext, Digest);
|
Variable.h | 112 VOID *HashContext[2]; // Hash context pointer
|