]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/OpensslLibConstructor.c
CryptoPkg: Apply uncrustify changes
[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 An internal OpenSSL function which fetches a local copy of the hardware
13 capability flags.
14
15 **/
16 extern
17 VOID
18 OPENSSL_cpuid_setup (
19 VOID
20 );
21
22 /**
23 Constructor routine for OpensslLib.
24
25 The constructor calls an internal OpenSSL function which fetches a local copy
26 of the hardware capability flags, used to enable native crypto instructions.
27
28 @param None
29
30 @retval EFI_SUCCESS The construction succeeded.
31
32 **/
33 EFI_STATUS
34 EFIAPI
35 OpensslLibConstructor (
36 VOID
37 )
38 {
39 OPENSSL_cpuid_setup ();
40
41 return EFI_SUCCESS;
42 }