TianoCore EDK2 master
Loading...
Searching...
No Matches
Pkcs7VerifyDxe.c File Reference

Go to the source code of this file.

Macros

#define MAX_DIGEST_SIZE   SHA512_DIGEST_SIZE
 

Functions

BOOLEAN CalculateDataHash (IN VOID *Data, IN UINTN DataSize, IN EFI_GUID *CertGuid, OUT UINT8 *HashValue)
 
BOOLEAN IsContentHashRevokedByHash (IN UINT8 *Hash, IN UINTN HashSize, IN EFI_SIGNATURE_LIST **RevokedDb)
 
BOOLEAN IsContentHashRevoked (IN UINT8 *Content, IN UINTN ContentSize, IN EFI_SIGNATURE_LIST **RevokedDb)
 
BOOLEAN IsCertHashRevoked (IN UINT8 *Certificate, IN UINTN CertSize, IN EFI_SIGNATURE_LIST **RevokedDb, OUT EFI_TIME *RevocationTime)
 
BOOLEAN IsTimeZero (IN EFI_TIME *Time)
 
BOOLEAN CompareTimestamp (IN EFI_TIME *SigningTime, IN EFI_TIME *RevocationTime)
 
BOOLEAN IsValidTimestamp (IN UINT8 *SignedData, IN UINTN SignedDataSize, IN EFI_SIGNATURE_LIST **TimeStampDb, IN EFI_TIME *RevocationTime)
 
EFI_STATUS P7CheckRevocationByHash (IN UINT8 *SignedData, IN UINTN SignedDataSize, IN UINT8 *InHash, IN UINTN InHashSize, IN EFI_SIGNATURE_LIST **RevokedDb, IN EFI_SIGNATURE_LIST **TimeStampDb)
 
EFI_STATUS P7CheckRevocation (IN UINT8 *SignedData, IN UINTN SignedDataSize, IN UINT8 *InData, IN UINTN InDataSize, IN EFI_SIGNATURE_LIST **RevokedDb, IN EFI_SIGNATURE_LIST **TimeStampDb)
 
EFI_STATUS P7CheckTrustByHash (IN UINT8 *SignedData, IN UINTN SignedDataSize, IN UINT8 *InHash, IN UINTN InHashSize, IN EFI_SIGNATURE_LIST **AllowedDb)
 
EFI_STATUS P7CheckTrust (IN UINT8 *SignedData, IN UINTN SignedDataSize, IN UINT8 *InData, IN UINTN InDataSize, IN EFI_SIGNATURE_LIST **AllowedDb)
 
EFI_STATUS EFIAPI VerifyBuffer (IN EFI_PKCS7_VERIFY_PROTOCOL *This, IN VOID *SignedData, IN UINTN SignedDataSize, IN VOID *InData OPTIONAL, IN UINTN InDataSize, IN EFI_SIGNATURE_LIST **AllowedDb, IN EFI_SIGNATURE_LIST **RevokedDb OPTIONAL, IN EFI_SIGNATURE_LIST **TimeStampDb OPTIONAL, OUT VOID *Content OPTIONAL, IN OUT UINTN *ContentSize)
 
EFI_STATUS EFIAPI VerifySignature (IN EFI_PKCS7_VERIFY_PROTOCOL *This, IN VOID *Signature, IN UINTN SignatureSize, IN VOID *InHash, IN UINTN InHashSize, IN EFI_SIGNATURE_LIST **AllowedDb, IN EFI_SIGNATURE_LIST **RevokedDb OPTIONAL, IN EFI_SIGNATURE_LIST **TimeStampDb OPTIONAL)
 
EFI_STATUS EFIAPI Pkcs7VerifyDriverEntry (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_PKCS7_VERIFY_PROTOCOL mPkcs7Verify
 

Detailed Description

Pkcs7Verify Driver to produce the UEFI PKCS7 Verification Protocol.

The driver will produce the UEFI PKCS7 Verification Protocol which is used to verify data signed using PKCS7 structure. The PKCS7 data to be verified must be ASN.1 (DER) encoded.

Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Pkcs7VerifyDxe.c.

Macro Definition Documentation

◆ MAX_DIGEST_SIZE

#define MAX_DIGEST_SIZE   SHA512_DIGEST_SIZE

Definition at line 20 of file Pkcs7VerifyDxe.c.

Function Documentation

◆ CalculateDataHash()

BOOLEAN CalculateDataHash ( IN VOID *  Data,
IN UINTN  DataSize,
IN EFI_GUID CertGuid,
OUT UINT8 *  HashValue 
)

Calculates the hash of the given data based on the specified hash GUID.

Parameters
[in]DataPointer to the data buffer to be hashed.
[in]DataSizeThe size of data buffer in bytes.
[in]CertGuidThe GUID to identify the hash algorithm to be used.
[out]HashValuePointer to a buffer that receives the hash result.
Return values
TRUEData hash calculation succeeded.
FALSEData hash calculation failed.

Definition at line 35 of file Pkcs7VerifyDxe.c.

◆ CompareTimestamp()

BOOLEAN CompareTimestamp ( IN EFI_TIME SigningTime,
IN EFI_TIME RevocationTime 
)

Check whether the timestamp is valid by comparing the signing time and the revocation time.

Parameters
SigningTimePointer to the signing time.
RevocationTimePointer to the revocation time.
Return values
TRUEThe SigningTime is not later than the RevocationTime.
FALSEThe SigningTime is later than the RevocationTime.

Definition at line 409 of file Pkcs7VerifyDxe.c.

◆ IsCertHashRevoked()

BOOLEAN IsCertHashRevoked ( IN UINT8 *  Certificate,
IN UINTN  CertSize,
IN EFI_SIGNATURE_LIST **  RevokedDb,
OUT EFI_TIME RevocationTime 
)

Check whether the hash of an given certificate is revoked by the revocation database.

Parameters
[in]CertificatePointer to the certificate that is searched for.
[in]CertSizeSize of certificate in bytes.
[in]RevokedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which contains list of X.509 certificate of revoked signers and revoked content hashes.
[out]RevocationTimeReturn the time that the certificate was revoked.
Returns
TRUE The certificate hash is found in the revocation database.
FALSE The certificate hash is not found in the revocation database.

Definition at line 282 of file Pkcs7VerifyDxe.c.

◆ IsContentHashRevoked()

BOOLEAN IsContentHashRevoked ( IN UINT8 *  Content,
IN UINTN  ContentSize,
IN EFI_SIGNATURE_LIST **  RevokedDb 
)

Check whether the hash of data content is revoked by the revocation database.

Parameters
[in]ContentPointer to the content buffer that is searched for.
[in]ContentSizeThe size of data content in bytes.
[in]RevokedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structure which contains list of X.509 certificates of revoked signers and revoked content hashes.
Returns
TRUE The matched content hash is found in the revocation database.
FALSE The matched content hash is not found in the revocation database.

Definition at line 201 of file Pkcs7VerifyDxe.c.

◆ IsContentHashRevokedByHash()

BOOLEAN IsContentHashRevokedByHash ( IN UINT8 *  Hash,
IN UINTN  HashSize,
IN EFI_SIGNATURE_LIST **  RevokedDb 
)

Check whether the hash of data content is revoked by the revocation database.

Parameters
[in]HashPointer to the hash that is searched for.
[in]HashSizeThe size of the hash in bytes.
[in]RevokedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structure which contains list of X.509 certificates of revoked signers and revoked content hashes.
Returns
TRUE The matched content hash is found in the revocation database.
FALSE The matched content hash is not found in the revocation database.

Definition at line 125 of file Pkcs7VerifyDxe.c.

◆ IsTimeZero()

BOOLEAN IsTimeZero ( IN EFI_TIME Time)

Check if the given time value is zero.

Parameters
[in]TimePointer of a time value.
Return values
TRUEThe Time is Zero.
FALSEThe Time is not Zero.

Definition at line 385 of file Pkcs7VerifyDxe.c.

◆ IsValidTimestamp()

BOOLEAN IsValidTimestamp ( IN UINT8 *  SignedData,
IN UINTN  SignedDataSize,
IN EFI_SIGNATURE_LIST **  TimeStampDb,
IN EFI_TIME RevocationTime 
)

Check whether the timestamp signature embedded in PKCS7 signedData is valid and the signing time is also earlier than the revocation time.

Parameters
[in]SignedDataPointer to the PKCS#7 signedData.
[in]SignedDataSizeSize of SignedData in bytes.
[in]TimeStampDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which is used to pass a list of X.509 certificates of trusted timestamp signers.
[in]RevocationTimeThe time that the certificate was revoked.
Return values
TRUETimestamp signature is valid and the signing time is no later than the revocation time.
FALSETimestamp signature is not valid or the signing time is later than the revocation time.

Definition at line 447 of file Pkcs7VerifyDxe.c.

◆ P7CheckRevocation()

EFI_STATUS P7CheckRevocation ( IN UINT8 *  SignedData,
IN UINTN  SignedDataSize,
IN UINT8 *  InData,
IN UINTN  InDataSize,
IN EFI_SIGNATURE_LIST **  RevokedDb,
IN EFI_SIGNATURE_LIST **  TimeStampDb 
)

Check whether the PKCS7 signedData is revoked by verifying with the revoked certificates database, and if the signedData is timestamped, the embedded timestamp counterSignature will be checked with the supplied timestamp database.

Parameters
[in]SignedDataPointer to buffer containing ASN.1 DER-encoded PKCS7 signature.
[in]SignedDataSizeThe size of SignedData buffer in bytes.
[in]InDataPointer to the buffer containing the raw message data previously signed and to be verified.
[in]InDataSizeThe size of InData buffer in bytes.
[in]RevokedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structure which contains list of X.509 certificates of revoked signers and revoked content hashes.
[in]TimeStampDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which is used to pass a list of X.509 certificates of trusted timestamp signers.
Return values
EFI_SUCCESSThe PKCS7 signedData is revoked.
EFI_SECURITY_VIOLATIONFail to verify the signature in PKCS7 signedData.
EFI_INVALID_PARAMETERSignedData is NULL or SignedDataSize is zero. AllowedDb is NULL. Content is not NULL and ContentSize is NULL.
EFI_NOT_FOUNDContent not found because InData is NULL and no content embedded in PKCS7 signedData.
EFI_UNSUPPORTEDThe PKCS7 signedData was not correctly formatted.

Definition at line 709 of file Pkcs7VerifyDxe.c.

◆ P7CheckRevocationByHash()

EFI_STATUS P7CheckRevocationByHash ( IN UINT8 *  SignedData,
IN UINTN  SignedDataSize,
IN UINT8 *  InHash,
IN UINTN  InHashSize,
IN EFI_SIGNATURE_LIST **  RevokedDb,
IN EFI_SIGNATURE_LIST **  TimeStampDb 
)

Check whether the PKCS7 signedData is revoked by verifying with the revoked certificates database, and if the signedData is timestamped, the embedded timestamp counterSignature will be checked with the supplied timestamp database.

Parameters
[in]SignedDataPointer to buffer containing ASN.1 DER-encoded PKCS7 signature.
[in]SignedDataSizeThe size of SignedData buffer in bytes.
[in]InHashPointer to the buffer containing the hash of the message data previously signed and to be verified.
[in]InHashSizeThe size of InHash buffer in bytes.
[in]RevokedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structure which contains list of X.509 certificates of revoked signers and revoked content hashes.
[in]TimeStampDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which is used to pass a list of X.509 certificates of trusted timestamp signers.
Return values
EFI_SUCCESSThe PKCS7 signedData is revoked.
EFI_SECURITY_VIOLATIONFail to verify the signature in PKCS7 signedData.
EFI_INVALID_PARAMETERSignedData is NULL or SignedDataSize is zero. AllowedDb is NULL. Content is not NULL and ContentSize is NULL.
EFI_NOT_FOUNDContent not found because InData is NULL and no content embedded in PKCS7 signedData.
EFI_UNSUPPORTEDThe PKCS7 signedData was not correctly formatted.

Definition at line 544 of file Pkcs7VerifyDxe.c.

◆ P7CheckTrust()

EFI_STATUS P7CheckTrust ( IN UINT8 *  SignedData,
IN UINTN  SignedDataSize,
IN UINT8 *  InData,
IN UINTN  InDataSize,
IN EFI_SIGNATURE_LIST **  AllowedDb 
)

Check whether the PKCS7 signedData can be verified by the trusted certificates database, and return the content of the signedData if requested.

Parameters
[in]SignedDataPointer to buffer containing ASN.1 DER-encoded PKCS7 signature.
[in]SignedDataSizeThe size of SignedData buffer in bytes.
[in]InDataPointer to the buffer containing the raw message data previously signed and to be verified.
[in]InDataSizeThe size of InData buffer in bytes.
[in]AllowedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which contains lists of X.509 certificates of approved signers.
Return values
EFI_SUCCESSThe PKCS7 signedData is trusted.
EFI_SECURITY_VIOLATIONFail to verify the signature in PKCS7 signedData.
EFI_INVALID_PARAMETERSignedData is NULL or SignedDataSize is zero. AllowedDb is NULL. Content is not NULL and ContentSize is NULL.
EFI_NOT_FOUNDContent not found because InData is NULL and no content embedded in PKCS7 signedData.
EFI_UNSUPPORTEDThe PKCS7 signedData was not correctly formatted.
EFI_BUFFER_TOO_SMALLThe size of buffer indicated by ContentSize is too small to hold the content. ContentSize updated to the required size.

Definition at line 967 of file Pkcs7VerifyDxe.c.

◆ P7CheckTrustByHash()

EFI_STATUS P7CheckTrustByHash ( IN UINT8 *  SignedData,
IN UINTN  SignedDataSize,
IN UINT8 *  InHash,
IN UINTN  InHashSize,
IN EFI_SIGNATURE_LIST **  AllowedDb 
)

Check whether the PKCS7 signedData can be verified by the trusted certificates database, and return the content of the signedData if requested.

Parameters
[in]SignedDataPointer to buffer containing ASN.1 DER-encoded PKCS7 signature.
[in]SignedDataSizeThe size of SignedData buffer in bytes.
[in]InHashPointer to the buffer containing the hash of the message data previously signed and to be verified.
[in]InHashSizeThe size of InHash buffer in bytes.
[in]AllowedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures which contains lists of X.509 certificates of approved signers.
Return values
EFI_SUCCESSThe PKCS7 signedData is trusted.
EFI_SECURITY_VIOLATIONFail to verify the signature in PKCS7 signedData.
EFI_INVALID_PARAMETERSignedData is NULL or SignedDataSize is zero. AllowedDb is NULL. Content is not NULL and ContentSize is NULL.
EFI_NOT_FOUNDContent not found because InData is NULL and no content embedded in PKCS7 signedData.
EFI_UNSUPPORTEDThe PKCS7 signedData was not correctly formatted.
EFI_BUFFER_TOO_SMALLThe size of buffer indicated by ContentSize is too small to hold the content. ContentSize updated to the required size.

Definition at line 873 of file Pkcs7VerifyDxe.c.

◆ Pkcs7VerifyDriverEntry()

EFI_STATUS EFIAPI Pkcs7VerifyDriverEntry ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The user Entry Point for the PKCS7 Verification driver.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
EFI_NOT_SUPPORTEDPlatform does not support PKCS7 Verification.
OtherSome error occurs when executing this entry point.

Definition at line 1469 of file Pkcs7VerifyDxe.c.

◆ VerifyBuffer()

EFI_STATUS EFIAPI VerifyBuffer ( IN EFI_PKCS7_VERIFY_PROTOCOL This,
IN VOID *  SignedData,
IN UINTN  SignedDataSize,
IN VOID *InData  OPTIONAL,
IN UINTN  InDataSize,
IN EFI_SIGNATURE_LIST **  AllowedDb,
IN EFI_SIGNATURE_LIST **RevokedDb  OPTIONAL,
IN EFI_SIGNATURE_LIST **TimeStampDb  OPTIONAL,
OUT VOID *Content  OPTIONAL,
IN OUT UINTN ContentSize 
)

Processes a buffer containing binary DER-encoded PKCS7 signature. The signed data content may be embedded within the buffer or separated. Function verifies the signature of the content is valid and signing certificate was not revoked and is contained within a list of trusted signers.

Parameters
[in]ThisPointer to EFI_PKCS7_VERIFY_PROTOCOL instance.
[in]SignedDataPoints to buffer containing ASN.1 DER-encoded PKCS7 signature.
[in]SignedDataSizeThe size of SignedData buffer in bytes.
[in]InDataIn case of detached signature, InData points to buffer containing the raw message data previously signed and to be verified by function. In case of SignedData containing embedded data, InData must be NULL.
[in]InDataSizeWhen InData is used, the size of InData buffer in bytes. When InData is NULL. This parameter must be 0.
[in]AllowedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. The EFI_SIGNATURE_LIST structures contain lists of X.509 certificates of approved signers. Function recognizes signer certificates of type EFI_CERT_X509_GUID. Any hash certificate in AllowedDb list is ignored by this function. Function returns success if signer of the buffer is within this list (and not within RevokedDb). This parameter is required.
[in]RevokedDbOptional pointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. List of X.509 certificates of revoked signers and revoked file hashes. Except as noted in description of TimeStampDb signature verification will always fail if the signer of the file or the hash of the data component of the buffer is in RevokedDb list. This list is optional and caller may pass Null or pointer to NULL if not required.
[in]TimeStampDbOptional pointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. This parameter can be used to pass a list of X.509 certificates of trusted time stamp signers. This list is optional and caller must pass Null or pointer to NULL if not required.
[out]ContentOn input, points to an optional caller-allocated buffer into which the function will copy the content portion of the file after verification succeeds. This parameter is optional and if NULL, no copy of content from file is performed.
[in,out]ContentSizeOn input, points to the size in bytes of the optional buffer Content previously allocated by caller. On output, if the verification succeeds, the value referenced by ContentSize will contain the actual size of the content from signed file. If ContentSize indicates the caller-allocated buffer is too small to contain content, an error is returned, and ContentSize will be updated with the required size. This parameter must be 0 if Content is Null.
Return values
EFI_SUCCESSContent signature was verified against hash of content, the signer's certificate was not found in RevokedDb, and was found in AllowedDb or if in signer is found in both AllowedDb and RevokedDb, the signing was allowed by reference to TimeStampDb as described above, and no hash matching content hash was found in RevokedDb.
EFI_SECURITY_VIOLATIONThe SignedData buffer was correctly formatted but signer was in RevokedDb or not in AllowedDb. Also returned if matching content hash found in RevokedDb.
EFI_COMPROMISED_DATACalculated hash differs from signed hash.
EFI_INVALID_PARAMETERSignedData is NULL or SignedDataSize is zero. AllowedDb is NULL.
EFI_INVALID_PARAMETERContent is not NULL and ContentSize is NULL.
EFI_ABORTEDUnsupported or invalid format in TimeStampDb, RevokedDb or AllowedDb list contents was detected.
EFI_NOT_FOUNDContent not found because InData is NULL and no content embedded in SignedData.
EFI_UNSUPPORTEDThe SignedData buffer was not correctly formatted for processing by the function.
EFI_UNSUPPORTEDSigned data embedded in SignedData but InData is not NULL.
EFI_BUFFER_TOO_SMALLThe size of buffer indicated by ContentSize is too small to hold the content. ContentSize updated to required size.

Definition at line 1121 of file Pkcs7VerifyDxe.c.

◆ VerifySignature()

EFI_STATUS EFIAPI VerifySignature ( IN EFI_PKCS7_VERIFY_PROTOCOL This,
IN VOID *  Signature,
IN UINTN  SignatureSize,
IN VOID *  InHash,
IN UINTN  InHashSize,
IN EFI_SIGNATURE_LIST **  AllowedDb,
IN EFI_SIGNATURE_LIST **RevokedDb  OPTIONAL,
IN EFI_SIGNATURE_LIST **TimeStampDb  OPTIONAL 
)

Processes a buffer containing binary DER-encoded detached PKCS7 signature. The hash of the signed data content is calculated and passed by the caller. Function verifies the signature of the content is valid and signing certificate was not revoked and is contained within a list of trusted signers.

Note: because this function uses hashes and the specification contains a variety of hash choices, you should be aware that the check against the RevokedDb list will improperly succeed if the signature is revoked using a different hash algorithm. For this reason, you should either cycle through all UEFI supported hashes to see if one is forbidden, or rely on a single hash choice only if the UEFI signature authority only signs and revokes with a single hash (at time of writing, this hash choice is SHA256).

Parameters
[in]ThisPointer to EFI_PKCS7_VERIFY_PROTOCOL instance.
[in]SignaturePoints to buffer containing ASN.1 DER-encoded PKCS detached signature.
[in]SignatureSizeThe size of Signature buffer in bytes.
[in]InHashInHash points to buffer containing the caller calculated hash of the data. The parameter may not be NULL.
[in]InHashSizeThe size in bytes of InHash buffer.
[in]AllowedDbPointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. The EFI_SIGNATURE_LIST structures contain lists of X.509 certificates of approved signers. Function recognizes signer certificates of type EFI_CERT_X509_GUID. Any hash certificate in AllowedDb list is ignored by this function. Function returns success if signer of the buffer is within this list (and not within RevokedDb). This parameter is required.
[in]RevokedDbOptional pointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. List of X.509 certificates of revoked signers and revoked file hashes. Signature verification will always fail if the signer of the file or the hash of the data component of the buffer is in RevokedDb list. This parameter is optional and caller may pass Null if not required.
[in]TimeStampDbOptional pointer to a list of pointers to EFI_SIGNATURE_LIST structures. The list is terminated by a null pointer. This parameter can be used to pass a list of X.509 certificates of trusted time stamp counter-signers.
Return values
EFI_SUCCESSSigned hash was verified against caller-provided hash of content, the signer's certificate was not found in RevokedDb, and was found in AllowedDb or if in signer is found in both AllowedDb and RevokedDb, the signing was allowed by reference to TimeStampDb as described above, and no hash matching content hash was found in RevokedDb.
EFI_SECURITY_VIOLATIONThe SignedData buffer was correctly formatted but signer was in RevokedDb or not in AllowedDb. Also returned if matching content hash found in RevokedDb.
EFI_COMPROMISED_DATACaller provided hash differs from signed hash. Or, caller and encrypted hash are different sizes.
EFI_INVALID_PARAMETERSignature is NULL or SignatureSize is zero. InHash is NULL or InHashSize is zero. AllowedDb is NULL.
EFI_ABORTEDUnsupported or invalid format in TimeStampDb, RevokedDb or AllowedDb list contents was detected.
EFI_UNSUPPORTEDThe Signature buffer was not correctly formatted for processing by the function.

Definition at line 1391 of file Pkcs7VerifyDxe.c.

Variable Documentation

◆ mPkcs7Verify

Initial value:
= {
}
EFI_STATUS EFIAPI VerifySignature(IN EFI_PKCS7_VERIFY_PROTOCOL *This, IN VOID *Signature, IN UINTN SignatureSize, IN VOID *InHash, IN UINTN InHashSize, IN EFI_SIGNATURE_LIST **AllowedDb, IN EFI_SIGNATURE_LIST **RevokedDb OPTIONAL, IN EFI_SIGNATURE_LIST **TimeStampDb OPTIONAL)
EFI_STATUS EFIAPI VerifyBuffer(IN EFI_PKCS7_VERIFY_PROTOCOL *This, IN VOID *SignedData, IN UINTN SignedDataSize, IN VOID *InData OPTIONAL, IN UINTN InDataSize, IN EFI_SIGNATURE_LIST **AllowedDb, IN EFI_SIGNATURE_LIST **RevokedDb OPTIONAL, IN EFI_SIGNATURE_LIST **TimeStampDb OPTIONAL, OUT VOID *Content OPTIONAL, IN OUT UINTN *ContentSize)

Definition at line 1451 of file Pkcs7VerifyDxe.c.