summaryrefslogtreecommitdiffhomepage
path: root/dev/EFS
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 10:04:39 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-20 10:04:39 +0200
commit01658f0f5ba1fb3e84d61629f15b8c5221bf66dc (patch)
treee3a3320fd6f29d063675feb8cf4ba6645e18d65a /dev/EFS
parentf1ac02764430421a0245261811c819fee0673ef4 (diff)
+ Fixes and refactors regarding Kernel DLL and other DLLs.
+ Next commit will fix TryLogIn method. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/EFS')
-rw-r--r--dev/EFS/EncryptFS.hxx6
-rw-r--r--dev/EFS/ReadMe.md5
-rw-r--r--dev/EFS/Sources/EncryptBlock.cxx14
-rw-r--r--dev/EFS/Sources/Key.cxx12
-rw-r--r--dev/EFS/build.json30
5 files changed, 51 insertions, 16 deletions
diff --git a/dev/EFS/EncryptFS.hxx b/dev/EFS/EncryptFS.hxx
index 2ed382e3..4348027b 100644
--- a/dev/EFS/EncryptFS.hxx
+++ b/dev/EFS/EncryptFS.hxx
@@ -14,9 +14,3 @@
#pragma once
#include <FSKit/NewFS.hxx>
-
-/// @brief EncryptFS NewFS extension for data protection.
-
-#define EFSKIT_VERSION 0x0100
-
-struct EFS_ENCRYPT_BLOCK;
diff --git a/dev/EFS/ReadMe.md b/dev/EFS/ReadMe.md
new file mode 100644
index 00000000..ba9de32f
--- /dev/null
+++ b/dev/EFS/ReadMe.md
@@ -0,0 +1,5 @@
+# ZKA Encrypted File System
+
+This is the ZKA's Encrypted file system DLL.
+
+###### (c) ZKA Technologies, all rights reserved.
diff --git a/dev/EFS/Sources/EncryptBlock.cxx b/dev/EFS/Sources/EncryptBlock.cxx
new file mode 100644
index 00000000..09b8c0d9
--- /dev/null
+++ b/dev/EFS/Sources/EncryptBlock.cxx
@@ -0,0 +1,14 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#include <cstddef>
+#include <cstdint>
+
+enum
+{
+ eEFSFlagEncrypted = 0x3f,
+ eEFSFlagEncryptedEPM = 0xf3,
+};
diff --git a/dev/EFS/Sources/Key.cxx b/dev/EFS/Sources/Key.cxx
new file mode 100644
index 00000000..457ce1b8
--- /dev/null
+++ b/dev/EFS/Sources/Key.cxx
@@ -0,0 +1,12 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#include <new>
+#include <cstddef>
+#include <cstdint>
+
+typedef int32_t efs_encrypt_token_t;
+typedef void* efs_encrypted_blob_t;
diff --git a/dev/EFS/build.json b/dev/EFS/build.json
index 560f6716..3c611a95 100644
--- a/dev/EFS/build.json
+++ b/dev/EFS/build.json
@@ -1,10 +1,20 @@
-{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": ["../", "./"],
- "sources_path": ["*.cxx"],
- "output_name": "encryptfs.dll",
- "compiler_flags": ["-ffreestanding", "-shared", "-fno-rtti", "-fno-exceptions", " -Wl,--subsystem=17"],
- "cpp_macros": ["__EFS_AMD64__", "cEFSVersion=0x0100", "cEFSVersionHighest=0x0100", "cEFSVersionLowest=0x0100"]
- }
- \ No newline at end of file
+{
+ "compiler_path": "x86_64-w64-mingw32-g++",
+ "compiler_std": "c++20",
+ "headers_path": ["../", "./"],
+ "sources_path": ["Sources/*.cxx"],
+ "output_name": "encryptfs.dll",
+ "compiler_flags": [
+ "-ffreestanding",
+ "-shared",
+ "-fno-rtti",
+ "-fno-exceptions",
+ " -Wl,--subsystem=17"
+ ],
+ "cpp_macros": [
+ "__EFS_AMD64__",
+ "cEFSVersion=0x0100",
+ "cEFSVersionHighest=0x0100",
+ "cEFSVersionLowest=0x0100"
+ ]
+}