Using PKCS7 API in PEI Phase


Guomin Jiang
 

Is is important to check the implement, Can you make sure that there are same between PEI and DXE?

Below is the definition and implement about d2i_PKCS7, can you study first?
DECLARE_ASN1_FUNCTIONS(PKCS7)
IMPLEMENT_ASN1_FUNCTIONS(PKCS7)

I am busy recently until August, so I can only give you the key point.

From: discuss@edk2.groups.io <discuss@edk2.groups.io> On Behalf Of Sukerkar, Amol N
Sent: Thursday, April 30, 2020 6:01 AM
To: discuss@edk2.groups.io
Cc: Sukerkar, Amol N <amol.n.sukerkar@...>
Subject: [edk2-discuss] Using PKCS7 API in PEI Phase

Hello,

I am trying to use PKCS7 verification mechanism in PEI phase. Calling d2i_PKCS7 returns NULL in PEI phase (Cache As RAM). However, d2i_PKCS7 is successful when called in DXE phase.

Any idea what might be the issue?

Thanks,
Amol


Sukerkar, Amol N <amol.n.sukerkar@...>
 

Hello,

 

I am trying to use PKCS7 verification mechanism in PEI phase. Calling d2i_PKCS7 returns NULL in PEI phase (Cache As RAM). However, d2i_PKCS7 is successful when called in DXE phase.

 

Any idea what might be the issue?

 

Thanks,

Amol