Lines Matching refs:CertList
1002 EFI_SIGNATURE_LIST *CertList;
1034 CertList = (EFI_SIGNATURE_LIST *) Data;
1035 while ((DataSize > 0) && (DataSize >= CertList->SignatureListSize)) {
1036 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
1037 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize);
1038 if ((CertList->SignatureSize == sizeof(EFI_SIGNATURE_DATA) - 1 + SignatureSize) && (CompareGuid(&CertList->SignatureType, &gEfiCertX509Guid))) {
1047 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize);
1055 DataSize -= CertList
1056 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
1228 // Iterate each Signature Data Node within this CertList for verify.
2354 EFI_SIGNATURE_LIST *CertList;
2362 CertList = NULL;
2434 CertList = (EFI_SIGNATURE_LIST *) Data;
2437 while ((ItemDataSize > 0) && (ItemDataSize >= CertList->SignatureListSize)) {
2439 if (CompareGuid (&CertList->SignatureType, &gEfiCertRsa2048Guid)) {
2441 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertX509Guid)) {
2443 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertSha1Guid)) {
2445 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertSha256Guid)) {
2447 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha256Guid)) {
2449 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha384Guid)) {
2451 } else if (CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha512Guid)) {
2457 ItemDataSize -= CertList->SignatureListSize;
2458 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
2462 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
2464 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList
2466 + CertList->SignatureHeaderSize
2467 + Index * CertList->SignatureSize);
2486 ItemDataSize -= CertList->SignatureListSize;
2487 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
2540 EFI_SIGNATURE_LIST *CertList;
2552 CertList = NULL;
2596 CertList = (EFI_SIGNATURE_LIST *) OldData;
2599 while ((KekDataSize > 0) && (KekDataSize >= CertList->SignatureListSize)) {
2600 if (CompareGuid (&CertList->SignatureType, &gEfiCertRsa2048Guid) ||
2601 CompareGuid (&CertList->SignatureType, &gEfiCertX509Guid)) {
2602 CopyMem (Data + Offset, CertList, (sizeof(EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize));
2604 Offset += (sizeof(EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize);
2605 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize);
2606 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
2612 NewCertList->SignatureListSize -= CertList->SignatureSize;
2618 CopyMem (Data + Offset, Cert, CertList->SignatureSize);
2619 Offset += CertList->SignatureSize;
2622 Cert = (EFI_SIGNATURE_DATA *) ((UINT8*) Cert + CertList->SignatureSize);
2628 CopyMem (Data + Offset, CertList, CertList->SignatureListSize);
2629 Offset += CertList->SignatureListSize;
2632 KekDataSize -= CertList->SignatureListSize;
2633 CertList = (EFI_SIGNATURE_LIST*) ((UINT8*) CertList + CertList->SignatureListSize);
2648 CertList = (EFI_SIGNATURE_LIST*) Data;
2651 while ((KekDataSize > 0) && (KekDataSize >= CertList->SignatureListSize)) {
2652 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
2655 CopyMem (OldData + Offset, CertList, CertList->SignatureListSize);
2656 Offset += CertList->SignatureListSize;
2658 KekDataSize -= CertList->SignatureListSize;
2659 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
2734 EFI_SIGNATURE_LIST *CertList;
2745 CertList = NULL;
2788 CertList = (EFI_SIGNATURE_LIST *) OldData;
2791 while ((ItemDataSize > 0) && (ItemDataSize >= CertList->SignatureListSize)) {
2792 if (CompareGuid (&CertList->SignatureType, &gEfiCertRsa2048Guid) ||
2793 CompareGuid (&CertList->SignatureType, &gEfiCertX509Guid) ||
2794 CompareGuid (&CertList->SignatureType, &gEfiCertSha1Guid) ||
2795 CompareGuid (&CertList->SignatureType, &gEfiCertSha256Guid) ||
2796 CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha256Guid) ||
2797 CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha384Guid) ||
2798 CompareGuid (&CertList->SignatureType, &gEfiCertX509Sha512Guid)
2803 CopyMem (Data + Offset, CertList, (sizeof(EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize));
2805 Offset += (sizeof(EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize);
2806 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) CertList + sizeof (EFI_SIGNATURE_LIST) + CertList->SignatureHeaderSize);
2807 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
2813 NewCertList->SignatureListSize -= CertList->SignatureSize;
2819 CopyMem (Data + Offset, (UINT8*)(Cert), CertList->SignatureSize);
2820 Offset += CertList->SignatureSize;
2823 Cert = (EFI_SIGNATURE_DATA *) ((UINT8 *) Cert + CertList->SignatureSize);
2829 CopyMem (Data + Offset, (UINT8*)(CertList), CertList->SignatureListSize);
2830 Offset += CertList->SignatureListSize;
2833 ItemDataSize -= CertList->SignatureListSize;
2834 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);
2849 CertList = (EFI_SIGNATURE_LIST *) Data;
2852 while ((ItemDataSize > 0) && (ItemDataSize >= CertList->SignatureListSize)) {
2853 CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;
2856 CopyMem (OldData + Offset, (UINT8*)(CertList), CertList->SignatureListSize);
2857 Offset += CertList->SignatureListSize;
2859 ItemDataSize -= CertList->SignatureListSize;
2860 CertList = (EFI_SIGNATURE_LIST *) ((UINT8 *) CertList + CertList->SignatureListSize);