Home
last modified time | relevance | path

Searched refs:AuthInfo (Results 1 – 15 of 15) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/FmpAuthenticationLibPkcs7/
DFmpAuthenticationLibPkcs7.c79 P7Length = Image->AuthInfo.Hdr.dwLength - (OFFSET_OF(WIN_CERTIFICATE_UEFI_GUID, CertData)); in FmpAuthenticatedHandlerPkcs7()
80 P7Data = Image->AuthInfo.CertData; in FmpAuthenticatedHandlerPkcs7()
83 TempBuffer = AllocatePool(ImageSize - Image->AuthInfo.Hdr.dwLength); in FmpAuthenticatedHandlerPkcs7()
92 (UINT8 *)Image + sizeof(Image->MonotonicCount) + Image->AuthInfo.Hdr.dwLength, in FmpAuthenticatedHandlerPkcs7()
93 ImageSize - sizeof(Image->MonotonicCount) - Image->AuthInfo.Hdr.dwLength in FmpAuthenticatedHandlerPkcs7()
96 (UINT8 *)TempBuffer + ImageSize - sizeof(Image->MonotonicCount) - Image->AuthInfo.Hdr.dwLength, in FmpAuthenticatedHandlerPkcs7()
106 ImageSize - Image->AuthInfo.Hdr.dwLength in FmpAuthenticatedHandlerPkcs7()
180 if (Image->AuthInfo.Hdr.dwLength <= OFFSET_OF(WIN_CERTIFICATE_UEFI_GUID, CertData)) { in AuthenticateFmpImage()
184 if (Image->AuthInfo.Hdr.dwLength > MAX_UINTN - sizeof(UINT64)) { in AuthenticateFmpImage()
188 if (ImageSize <= sizeof(Image->MonotonicCount) + Image->AuthInfo.Hdr.dwLength) { in AuthenticateFmpImage()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/
DFmpAuthenticationLibRsa2048Sha256.c87 …if (Image->AuthInfo.Hdr.dwLength != OFFSET_OF(WIN_CERTIFICATE_UEFI_GUID, CertData) + sizeof(EFI_CE… in FmpAuthenticatedHandlerRsa2048Sha256()
88 …erRsa2048Sha256 - dwLength: 0x%04x, dwLength - 0x%04x\n", (UINTN)Image->AuthInfo.Hdr.dwLength, (UI… in FmpAuthenticatedHandlerRsa2048Sha256()
92 CertBlockRsa2048Sha256 = (EFI_CERT_BLOCK_RSA_2048_SHA256 *)Image->AuthInfo.CertData; in FmpAuthenticatedHandlerRsa2048Sha256()
197 (UINT8 *)Image + sizeof(Image->MonotonicCount) + Image->AuthInfo.Hdr.dwLength, in FmpAuthenticatedHandlerRsa2048Sha256()
198 ImageSize - sizeof(Image->MonotonicCount) - Image->AuthInfo.Hdr.dwLength in FmpAuthenticatedHandlerRsa2048Sha256()
318 if (Image->AuthInfo.Hdr.dwLength <= OFFSET_OF(WIN_CERTIFICATE_UEFI_GUID, CertData)) { in AuthenticateFmpImage()
322 if (Image->AuthInfo.Hdr.dwLength > MAX_UINTN - sizeof(UINT64)) { in AuthenticateFmpImage()
326 if (ImageSize <= sizeof(Image->MonotonicCount) + Image->AuthInfo.Hdr.dwLength) { in AuthenticateFmpImage()
330 if (Image->AuthInfo.Hdr.wRevision != 0x0200) { in AuthenticateFmpImage()
331 …enticateFmpImage - wRevision: 0x%02x, expect - 0x%02x\n", (UINTN)Image->AuthInfo.Hdr.wRevision, (U… in AuthenticateFmpImage()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DAuthVariableLib.h23 #define AUTHINFO_SIZE ((OFFSET_OF (EFI_VARIABLE_AUTHENTICATION, AuthInfo)) + \
27 #define AUTHINFO2_SIZE(VarAuth2) ((OFFSET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo)) + \
28 … (UINTN) ((EFI_VARIABLE_AUTHENTICATION_2 *) (VarAuth2))->AuthInfo.Hdr.dwLength)
30 #define OFFSET_OF_AUTHINFO2_CERT_DATA ((OFFSET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo)) + \
/device/linaro/bootloader/edk2/MdePkg/Include/Uefi/
DUefiMultiPhase.h208 WIN_CERTIFICATE_UEFI_GUID AuthInfo; member
228 WIN_CERTIFICATE_UEFI_GUID AuthInfo; member
/device/linaro/bootloader/edk2/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/
DEdkiiSystemCapsuleLib.c385 if (ImageAuth->AuthInfo.Hdr.dwLength <= OFFSET_OF(WIN_CERTIFICATE_UEFI_GUID, CertData)) { in ExtractAuthenticatedImage()
389 if (ImageAuth->AuthInfo.Hdr.dwLength > MAX_UINTN - sizeof(UINT64)) { in ExtractAuthenticatedImage()
393 if (ImageSize <= sizeof(ImageAuth->MonotonicCount) + ImageAuth->AuthInfo.Hdr.dwLength) { in ExtractAuthenticatedImage()
397 if (ImageAuth->AuthInfo.Hdr.wRevision != 0x0200) { in ExtractAuthenticatedImage()
398 …ticatedImage - wRevision: 0x%02x, expect - 0x%02x\n", (UINTN)ImageAuth->AuthInfo.Hdr.wRevision, (U… in ExtractAuthenticatedImage()
401 if (ImageAuth->AuthInfo.Hdr.wCertificateType != WIN_CERT_TYPE_EFI_GUID) { in ExtractAuthenticatedImage()
402 …Image - wCertificateType: 0x%02x, expect - 0x%02x\n", (UINTN)ImageAuth->AuthInfo.Hdr.wCertificateT… in ExtractAuthenticatedImage()
406 CertType = &ImageAuth->AuthInfo.CertType; in ExtractAuthenticatedImage()
452 …*AuthenticatedImage = (UINT8 *)ImageAuth + ImageAuth->AuthInfo.Hdr.dwLength + sizeof(ImageAuth->Mo… in ExtractAuthenticatedImage()
455 …*AuthenticatedImageSize = ImageSize - ImageAuth->AuthInfo.Hdr.dwLength - sizeof(ImageAuth->Monoton… in ExtractAuthenticatedImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PlatformVarCleanupLib/
DPlatVarCleanupLib.c371 …DescriptorSize = OFFSET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo) + OFFSET_OF (WIN_CERTIFICATE_… in CreateTimeBasedPayload()
396 DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
397 DescriptorData->AuthInfo.Hdr.wRevision = 0x0200; in CreateTimeBasedPayload()
398 DescriptorData->AuthInfo.Hdr.wCertificateType = WIN_CERT_TYPE_EFI_GUID; in CreateTimeBasedPayload()
399 CopyGuid (&DescriptorData->AuthInfo.CertType, &gEfiCertPkcs7Guid); in CreateTimeBasedPayload()
455 DescriptorSize = (OFFSET_OF (EFI_VARIABLE_AUTHENTICATION, AuthInfo)) + \ in CreateCounterBasedPayload()
476 …DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData) + … in CreateCounterBasedPayload()
477 DescriptorData->AuthInfo.Hdr.wRevision = 0x0200; in CreateCounterBasedPayload()
478 DescriptorData->AuthInfo.Hdr.wCertificateType = WIN_CERT_TYPE_EFI_GUID; in CreateCounterBasedPayload()
479 CopyGuid (&DescriptorData->AuthInfo.CertType, &gEfiCertTypeRsa2048Sha256Guid); in CreateCounterBasedPayload()
/device/linaro/bootloader/edk2/MdeModulePkg/Application/CapsuleApp/
DCapsuleDump.c108 if (CompareGuid(&ImageAuthentication->AuthInfo.CertType, &gEfiCertPkcs7Guid) || in DumpImageAuthentication()
109 CompareGuid(&ImageAuthentication->AuthInfo.CertType, &gEfiCertTypeRsa2048Sha256Guid)) { in DumpImageAuthentication()
113 Print(L" dwLength - 0x%x\n", ImageAuthentication->AuthInfo.Hdr.dwLength); in DumpImageAuthentication()
114 Print(L" wRevision - 0x%x\n", ImageAuthentication->AuthInfo.Hdr.wRevision); in DumpImageAuthentication()
115 Print(L" wCertificateType - 0x%x\n", ImageAuthentication->AuthInfo.Hdr.wCertificateType); in DumpImageAuthentication()
116 Print(L" CertType - %g\n", &ImageAuthentication->AuthInfo.CertType); in DumpImageAuthentication()
117 return sizeof(ImageAuthentication->MonotonicCount) + ImageAuthentication->AuthInfo.Hdr.dwLength; in DumpImageAuthentication()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/Common/
DUefiMultiPhase.h228 WIN_CERTIFICATE_UEFI_GUID AuthInfo; member
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DAuthService.c323 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in VerifyDataPayload()
329 if ((CertData->AuthInfo.Hdr.wCertificateType != WIN_CERT_TYPE_EFI_GUID) || in VerifyDataPayload()
330 !CompareGuid (&CertData->AuthInfo.CertType, Global->CertRsa2048Sha256Guid[VirtualMode]) in VerifyDataPayload()
640 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in ProcessVarWithKek()
840 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in VerifyVariable()
DAuthService.h25 #define AUTHINFO_SIZE (((UINTN)(((EFI_VARIABLE_AUTHENTICATION *) 0)->AuthInfo.CertData)) + sizeof (…
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/
DAuthService.c518 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in VerifyCounterBasedPayload()
524 if ((CertData->AuthInfo.Hdr.wCertificateType != WIN_CERT_TYPE_EFI_GUID) || in VerifyCounterBasedPayload()
525 !CompareGuid (&CertData->AuthInfo.CertType, &gEfiCertTypeRsa2048Sha256Guid)) { in VerifyCounterBasedPayload()
1304 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in ProcessVariable()
2232 if ((CertData->AuthInfo.Hdr.wCertificateType != WIN_CERT_TYPE_EFI_GUID) || in VerifyTimeBasedPayload()
2233 !CompareGuid (&CertData->AuthInfo.CertType, &gEfiCertPkcs7Guid)) { in VerifyTimeBasedPayload()
2244 SigData = CertData->AuthInfo.CertData; in VerifyTimeBasedPayload()
2245 …SigDataSize = CertData->AuthInfo.Hdr.dwLength - (UINT32) (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, Ce… in VerifyTimeBasedPayload()
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
DFirmwareManagement.h185 WIN_CERTIFICATE_UEFI_GUID AuthInfo; member
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c194 …DescriptorSize = OFFSET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo) + OFFSET_OF (WIN_CERTIFICA… in CreateTimeBasedPayload()
219 DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
220 DescriptorData->AuthInfo.Hdr.wRevision = 0x0200; in CreateTimeBasedPayload()
221 DescriptorData->AuthInfo.Hdr.wCertificateType = WIN_CERT_TYPE_EFI_GUID; in CreateTimeBasedPayload()
222 CopyGuid (&DescriptorData->AuthInfo.CertType, &gEfiCertPkcs7Guid); in CreateTimeBasedPayload()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariable.c3198 …IABLE_AUTHENTICATION_2 *) Data)->AuthInfo.Hdr.dwLength > DataSize - (OFFSET_OF (EFI_VARIABLE_AUTHE… in VariableServiceSetVariable()
3199 …((EFI_VARIABLE_AUTHENTICATION_2 *) Data)->AuthInfo.Hdr.dwLength < OFFSET_OF (WIN_CERTIFICATE_UEFI_… in VariableServiceSetVariable()
/device/linaro/bootloader/edk2/EdkShellPkg/
DShellR33.patch4231 + L"AuthInfo",