From ecb29e3b3f1a67800922a79c009e80a0eb45ef91 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 21 Mar 2019 20:58:50 +0100 Subject: Enhance Rescue Disk implementation of restoring VeraCrypt loader. --- Include/Library/CommonLib.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Include/Library') diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h index 479c5c1..d0db41f 100644 --- a/Include/Library/CommonLib.h +++ b/Include/Library/CommonLib.h @@ -80,6 +80,13 @@ PrepareMemory( IN UINTN len, OUT VOID** mem ); + +EFI_STATUS +MemoryHasPattern ( + CONST VOID* buffer, + UINTN bufferLen, + CONST VOID* pattern, + UINTN patternLen); ////////////////////////////////////////////////////////////////////////// // handles @@ -650,6 +657,12 @@ extern UINTN gFSCount; EFI_STATUS InitFS(); +EFI_STATUS +DirectoryCreate( + IN EFI_FILE* root, + IN CHAR16* name + ); + EFI_STATUS FileOpenRoot( IN EFI_HANDLE rootHandle, @@ -685,7 +698,7 @@ EFI_STATUS FileWrite( IN EFI_FILE* f, IN VOID* data, - IN OUT UINTN* bytes, + IN OUT UINTN bytes, IN OUT UINT64* position); UINTN -- cgit v1.2.3