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