Home
last modified time | relevance | path

Searched refs:CertData (Results 1 – 11 of 11) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DAuthService.c308 EFI_VARIABLE_AUTHENTICATION *CertData; in VerifyDataPayload() local
315 CertData = NULL; in VerifyDataPayload()
322 CertData = (EFI_VARIABLE_AUTHENTICATION *) Data; in VerifyDataPayload()
323 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()
354 Status = Sha256Update (HashContext, &CertData->MonotonicCount, sizeof (UINT64)); in VerifyDataPayload()
484 EFI_VARIABLE_AUTHENTICATION *CertData; in ProcessVarWithPk() local
506 CertData = (EFI_VARIABLE_AUTHENTICATION *) Data; in ProcessVarWithPk()
518 if (CertData->MonotonicCount <= VariableHeader.MonotonicCount) { in ProcessVarWithPk()
[all …]
DAuthService.h25 #define AUTHINFO_SIZE (((UINTN)(((EFI_VARIABLE_AUTHENTICATION *) 0)->AuthInfo.CertData)) + sizeof (…
/device/linaro/bootloader/edk2/SecurityPkg/Library/AuthVariableLib/
DAuthService.c1458 EFI_VARIABLE_AUTHENTICATION *CertData; in VerifyCounterBasedPayload() local
1466 CertData = NULL; in VerifyCounterBasedPayload()
1473 CertData = (EFI_VARIABLE_AUTHENTICATION *) Data; in VerifyCounterBasedPayload()
1474 CertBlock = (EFI_CERT_BLOCK_RSA_2048_SHA256 *) (CertData->AuthInfo.CertData); in VerifyCounterBasedPayload()
1480 if ((CertData->AuthInfo.Hdr.wCertificateType != WIN_CERT_TYPE_EFI_GUID) || in VerifyCounterBasedPayload()
1481 !CompareGuid (&CertData->AuthInfo.CertType, &gEfiCertTypeRsa2048Sha256Guid)) { in VerifyCounterBasedPayload()
1509 Status = Sha256Update (mHashCtx, &CertData->MonotonicCount, sizeof (UINT64)); in VerifyCounterBasedPayload()
1583 EFI_SIGNATURE_DATA *CertData; in CheckSignatureListFormat() local
1647CertData = (EFI_SIGNATURE_DATA *) ((UINT8 *) SigList + sizeof (EFI_SIGNATURE_LIST) + SigList->Sign… in CheckSignatureListFormat()
1649 if (!RsaGetPublicKeyFromX509 (CertData->SignatureData, CertLen, &RsaContext)) { in CheckSignatureListFormat()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c1333 EFI_SIGNATURE_DATA *CertData; in IsForbiddenByDbx() local
1357 CertData = NULL; in IsForbiddenByDbx()
1396CertData = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in IsForbiddenByDbx()
1403 RootCert = CertData->SignatureData; in IsForbiddenByDbx()
1418 … (EFI_IMAGE_SECURITY_DATABASE1, &gEfiImageSecurityDatabaseGuid, CertList->SignatureSize, CertData); in IsForbiddenByDbx()
1422 CertData = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertData + CertList->SignatureSize); in IsForbiddenByDbx()
1541 EFI_SIGNATURE_DATA *CertData; in IsAllowedByDb() local
1558 CertData = NULL; in IsAllowedByDb()
1587CertData = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->S… in IsAllowedByDb()
1594 RootCert = CertData->SignatureData; in IsAllowedByDb()
[all …]
DDxeImageVerificationLib.h88 UINT8 CertData[1]; member
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DAuthVariableLib.h24 (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData)) + \
31 (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData)))
/device/linaro/bootloader/edk2/MdePkg/Include/Guid/
DWinCertificate.h91 UINT8 CertData[1]; member
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PlatformVarCleanupLib/
DPlatVarCleanupLib.c362 …SET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo) + OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
387 DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
447 (OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData)) + \ in CreateCounterBasedPayload()
467 …DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData) + … in CreateCounterBasedPayload()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.h340 UINT8 CertData[1]; member
DSecureBootConfigImpl.c194 …SET_OF (EFI_VARIABLE_AUTHENTICATION_2, AuthInfo) + OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
219 DescriptorData->AuthInfo.Hdr.dwLength = OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData); in CreateTimeBasedPayload()
1069 IN UINT8 *CertData, in CalculateCertHash() argument
1091 if (!X509GetTBSCert (CertData, CertSize, &TBSCert, &TBSCertSize)) { in CalculateCertHash()
1962 if ((*(PkcsCertData->CertData + 1) & TWO_BYTE_ENCODE) != TWO_BYTE_ENCODE) { in HashPeImageByType()
1970 …if (CompareMem (PkcsCertData->CertData + 32, mHash[Index].OidValue, mHash[Index].OidLength) == 0) { in HashPeImageByType()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariable.c3155 …THENTICATION_2 *) Data)->AuthInfo.Hdr.dwLength < OFFSET_OF (WIN_CERTIFICATE_UEFI_GUID, CertData)) { in VariableServiceSetVariable()