TianoCore EDK2 master
Loading...
Searching...
No Matches
SecurityManagementLib.h
Go to the documentation of this file.
1
11#ifndef __SECURITY_MANAGEMENT_LIB_H__
12#define __SECURITY_MANAGEMENT_LIB_H__
13
14//
15// Authentication Operation defintions for User Identity (UID), Measured and Secure boot.
16//
17#define EFI_AUTH_OPERATION_NONE 0x00
18#define EFI_AUTH_OPERATION_VERIFY_IMAGE 0x01
19#define EFI_AUTH_OPERATION_DEFER_IMAGE_LOAD 0x02
20#define EFI_AUTH_OPERATION_MEASURE_IMAGE 0x04
21#define EFI_AUTH_OPERATION_CONNECT_POLICY 0x08
22//
23// Authentication State Operation will check the authentication status of a file.
24//
25#define EFI_AUTH_OPERATION_AUTHENTICATION_STATE 0x10
26
30#define EFI_AUTH_OPERATION_IMAGE_REQUIRED 0x80000000
31
80typedef
83 IN OUT UINT32 AuthenticationStatus,
85 IN VOID *FileBuffer,
86 IN UINTN FileSize
87 );
88
104EFIAPI
107 IN UINT32 AuthenticationOperation
108 );
109
142EFIAPI
144 IN UINT32 AuthenticationStatus,
146 );
147
185typedef
188 IN UINT32 AuthenticationStatus,
190 IN VOID *FileBuffer,
191 IN UINTN FileSize,
192 IN BOOLEAN BootPolicy
193 );
194
211EFIAPI
214 IN UINT32 AuthenticationOperation
215 );
216
260EFIAPI
262 IN UINT32 AuthenticationOperation,
263 IN UINT32 AuthenticationStatus,
264 IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL,
265 IN VOID *FileBuffer,
266 IN UINTN FileSize,
267 IN BOOLEAN BootPolicy
268 );
269
270#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI ExecuteSecurity2Handlers(IN UINT32 AuthenticationOperation, IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL, IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy)
EFI_STATUS EFIAPI RegisterSecurityHandler(IN SECURITY_FILE_AUTHENTICATION_STATE_HANDLER SecurityHandler, IN UINT32 AuthenticationOperation)
EFI_STATUS(EFIAPI * SECURITY2_FILE_AUTHENTICATION_HANDLER)(IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy)
EFI_STATUS(EFIAPI * SECURITY_FILE_AUTHENTICATION_STATE_HANDLER)(IN OUT UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer, IN UINTN FileSize)
EFI_STATUS EFIAPI RegisterSecurity2Handler(IN SECURITY2_FILE_AUTHENTICATION_HANDLER Security2Handler, IN UINT32 AuthenticationOperation)
EFI_STATUS EFIAPI ExecuteSecurityHandlers(IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *FilePath)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29