]>
Commit | Line | Data |
---|---|---|
cc1d13c9 MK |
1 | /** @file\r |
2 | Installs the EDK II Crypto Protocol\r | |
3 | \r | |
4 | Copyright (C) Microsoft Corporation. All rights reserved.\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include <PiDxe.h>\r | |
10 | #include <Library/UefiBootServicesTableLib.h>\r | |
11 | #include <Protocol/Crypto.h>\r | |
12 | \r | |
13 | extern CONST EDKII_CRYPTO_PROTOCOL mEdkiiCrypto;\r | |
14 | \r | |
15 | /**\r | |
16 | The module Entry Point of the Crypto Dxe Driver.\r | |
17 | \r | |
18 | @param[in] ImageHandle The firmware allocated handle for the EFI image.\r | |
19 | @param[in] SystemTable A pointer to the EFI System Table.\r | |
20 | \r | |
21 | @retval EFI_SUCCESS The entry point is executed successfully.\r | |
22 | @retval Other Some error occurs when executing this entry point.\r | |
23 | \r | |
24 | **/\r | |
25 | EFI_STATUS\r | |
26 | EFIAPI\r | |
27 | CryptoDxeEntry (\r | |
28 | IN EFI_HANDLE ImageHandle,\r | |
29 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
30 | )\r | |
31 | {\r | |
7c342378 | 32 | return gBS->InstallMultipleProtocolInterfaces (\r |
cc1d13c9 MK |
33 | &ImageHandle,\r |
34 | &gEdkiiCryptoProtocolGuid,\r | |
7c342378 | 35 | (EDKII_CRYPTO_PROTOCOL *)&mEdkiiCrypto,\r |
cc1d13c9 MK |
36 | NULL\r |
37 | );\r | |
38 | }\r |