32 return (VOID *)mCryptoProtocol;
54 Status =
gBS->LocateProtocol (
55 &gEdkiiCryptoProtocolGuid,
57 (VOID **)&mCryptoProtocol
60 if (EFI_ERROR (Status) || (mCryptoProtocol ==
NULL)) {
61 DEBUG ((DEBUG_ERROR,
"[DxeCryptLib] Failed to locate Crypto Protocol. Status = %r\n", Status));
63 ASSERT (mCryptoProtocol !=
NULL);
64 mCryptoProtocol =
NULL;
70 DEBUG ((DEBUG_ERROR,
"[DxeCryptLib] Crypto Protocol unsupported version %d\n", Version));
72 mCryptoProtocol =
NULL;
EFI_STATUS EFIAPI DxeCryptLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID * GetCryptoServices(VOID)
#define ASSERT_EFI_ERROR(StatusParameter)
#define DEBUG(Expression)
#define EDKII_CRYPTO_VERSION
EDKII_CRYPTO_GET_VERSION GetVersion
Version.