From abf3adcd2f37f4e278fc9ef7634ca0c8f5171893 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Sun, 5 Feb 2017 17:31:28 +0300 Subject: picture password bmp and DcsProp can be in secregion on separate flash Tables overlay configuration commands --- Include/Library/CommonLib.h | 30 ++++++++++++++++++++++++++++++ Include/Library/DcsCfgLib.h | 27 +++++++++++++++++++++++++++ Include/Library/PasswordLib.h | 7 +++++++ 3 files changed, 64 insertions(+) (limited to 'Include') diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h index 98e93db..2c698d0 100644 --- a/Include/Library/CommonLib.h +++ b/Include/Library/CommonLib.h @@ -173,6 +173,36 @@ GptReadHeader( OUT EFI_PARTITION_TABLE_HEADER **PartHeader ); +////////////////////////////////////////////////////////////////////////// +// General EFI tables +////////////////////////////////////////////////////////////////////////// +#define EFITABLE_HEADER_SIGN SIGNATURE_64('E','F','I','T','A','B','L','E') + +BOOLEAN +TablesVerify( + IN UINTN maxSize, + IN VOID* tables); + +BOOLEAN +TablesGetData( + IN VOID* tables, + IN UINT64 sign, + OUT VOID** data, + OUT UINTN* size); + +BOOLEAN +TablesDelete( + IN VOID* tables, + IN UINT64 sign + ); + +BOOLEAN +TablesAppend( + IN OUT VOID** tables, + IN UINT64 sign, + IN VOID* data, + IN UINTN size); + ////////////////////////////////////////////////////////////////////////// // Bluetooth ////////////////////////////////////////////////////////////////////////// diff --git a/Include/Library/DcsCfgLib.h b/Include/Library/DcsCfgLib.h index 322aaa1..259004e 100644 --- a/Include/Library/DcsCfgLib.h +++ b/Include/Library/DcsCfgLib.h @@ -111,6 +111,33 @@ GptAskGUID( BOOLEAN IsRegionOverlap(UINT64 start1, UINT64 end1, UINT64 start2, UINT64 end2); +////////////////////////////////////////////////////////////////////////// +// Tables +////////////////////////////////////////////////////////////////////////// +extern CONST CHAR16* DcsTablesFileName; +extern UINT8* gDcsTables; +extern UINTN gDcsTablesSize; + +EFI_STATUS +TablesDel( + IN CONST CHAR16* sign + ); + +EFI_STATUS +TablesNew( + IN CONST CHAR16* sign, + IN CONST CHAR16* dataFileName + ); + +EFI_STATUS +TablesLoad(); + +BOOLEAN +TablesList( + IN UINTN maxSize, + IN VOID* tables + ); + ////////////////////////////////////////////////////////////////////////// // Random ////////////////////////////////////////////////////////////////////////// diff --git a/Include/Library/PasswordLib.h b/Include/Library/PasswordLib.h index 7ed31c5..a827b16 100644 --- a/Include/Library/PasswordLib.h +++ b/Include/Library/PasswordLib.h @@ -25,6 +25,8 @@ extern UINTN gPasswordPictureCharsLen; extern UINT8 gPasswordVisible; extern UINT8 gPasswordProgress; extern int gPasswordShowMark; +extern VOID* gPictPwdBmp; +extern UINTN gPictPwdBmpSize; extern int gPlatformLocked; extern int gTPMLocked; @@ -114,4 +116,9 @@ PlatformGetAuthData( OUT EFI_HANDLE *secRegionHandle ); +////////////////////////////////////////////////////////////////////////// +// Certificates +////////////////////////////////////////////////////////////////////////// +extern CHAR8* gDCS_platform_crt_der; + #endif \ No newline at end of file -- cgit v1.2.3