]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/OpensslLibConstructor.c
CryptoPkg/OpensslLib: Commit the auto-generated assembly files for X64
[mirror_edk2.git] / CryptoPkg / Library / OpensslLib / OpensslLibConstructor.c
1 /** @file
2 Constructor to initialize CPUID data for OpenSSL assembly operations.
3
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Uefi.h>
10
11
12 /**
13 An internal OpenSSL function which fetches a local copy of the hardware
14 capability flags.
15
16 **/
17 extern
18 VOID
19 OPENSSL_cpuid_setup (
20 VOID
21 );
22
23 /**
24 Constructor routine for OpensslLib.
25
26 The constructor calls an internal OpenSSL function which fetches a local copy
27 of the hardware capability flags, used to enable native crypto instructions.
28
29 @param None
30
31 @retval EFI_SUCCESS The construction succeeded.
32
33 **/
34 EFI_STATUS
35 EFIAPI
36 OpensslLibConstructor (
37 VOID
38 )
39 {
40 OPENSSL_cpuid_setup ();
41
42 return EFI_SUCCESS;
43 }
44