33 return (VOID *)mSmmCryptoProtocol;
57 Status =
gSmst->SmmLocateProtocol (
58 &gEdkiiSmmCryptoProtocolGuid,
60 (VOID **)&mSmmCryptoProtocol
62 if (EFI_ERROR (Status) || (mSmmCryptoProtocol ==
NULL)) {
63 DEBUG ((DEBUG_ERROR,
"[SmmCryptLib] Failed to locate Crypto SMM Protocol. Status = %r\n", Status));
65 ASSERT (mSmmCryptoProtocol !=
NULL);
66 mSmmCryptoProtocol =
NULL;
72 DEBUG ((DEBUG_ERROR,
"[SmmCryptLib] Crypto SMM Protocol unsupported version %d\n", Version));
74 mSmmCryptoProtocol =
NULL;
#define ASSERT_EFI_ERROR(StatusParameter)
#define DEBUG(Expression)
EFI_SMM_SYSTEM_TABLE2 * gSmst
#define EDKII_CRYPTO_VERSION
EFI_STATUS EFIAPI SmmCryptLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID * GetCryptoServices(VOID)
EDKII_CRYPTO_GET_VERSION GetVersion
Version.