VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Include/Library
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-21 20:58:50 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-21 20:58:50 +0100
commitecb29e3b3f1a67800922a79c009e80a0eb45ef91 (patch)
treeab11de4eee82bb48fa25314d74197847294010db /Include/Library
parent4922daee362adf600fd19f91aa11cc603d8d17e1 (diff)
downloadVeraCrypt-DCS-ecb29e3b3f1a67800922a79c009e80a0eb45ef91.tar.gz
VeraCrypt-DCS-ecb29e3b3f1a67800922a79c009e80a0eb45ef91.zip
Enhance Rescue Disk implementation of restoring VeraCrypt loader.
Diffstat (limited to 'Include/Library')
-rw-r--r--Include/Library/CommonLib.h15
1 files changed, 14 insertions, 1 deletions
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
@@ -651,6 +658,12 @@ EFI_STATUS
InitFS();
EFI_STATUS
+DirectoryCreate(
+ IN EFI_FILE* root,
+ IN CHAR16* name
+ );
+
+EFI_STATUS
FileOpenRoot(
IN EFI_HANDLE rootHandle,
OUT EFI_FILE** rootFile);
@@ -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