summaryrefslogtreecommitdiffhomepage
path: root/dev/base/EncryptFS/src
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-25 08:26:08 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-25 08:26:08 +0200
commitdaa4f8c748d290feba8a71e889743a8a3097ad7d (patch)
tree4b4869dbe3ec5f7c1d78c3d88241db96d006a445 /dev/base/EncryptFS/src
parent8f62fbe30655e4d18837f196f01bb203126f474f (diff)
Refactor codebase: Move Objects to obj/, fix flags, remove .vscode, add syscalls
- Refactored Objects directory to obj/ for better organization. - Fixed incorrect flags in the build process. - Removed .vscode folder to clean up unnecessary IDE settings. - Added syscall implementations for enhanced functionality. Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/base/EncryptFS/src')
-rw-r--r--dev/base/EncryptFS/src/EncryptBlock.cxx14
-rw-r--r--dev/base/EncryptFS/src/Key.cxx12
-rw-r--r--dev/base/EncryptFS/src/disk_crypt.cxx14
3 files changed, 14 insertions, 26 deletions
diff --git a/dev/base/EncryptFS/src/EncryptBlock.cxx b/dev/base/EncryptFS/src/EncryptBlock.cxx
deleted file mode 100644
index b3f2fc56..00000000
--- a/dev/base/EncryptFS/src/EncryptBlock.cxx
+++ /dev/null
@@ -1,14 +0,0 @@
-/* -------------------------------------------
-
- Copyright ZKA Technologies.
-
-------------------------------------------- */
-
-#include <cstddef>
-#include <cstdint>
-
-enum
-{
- eEFSFlagEncrypted = 0x3f,
- eEFSFlagEncryptedEPM = 0xf3,
-};
diff --git a/dev/base/EncryptFS/src/Key.cxx b/dev/base/EncryptFS/src/Key.cxx
deleted file mode 100644
index 166d04b3..00000000
--- a/dev/base/EncryptFS/src/Key.cxx
+++ /dev/null
@@ -1,12 +0,0 @@
-/* -------------------------------------------
-
- 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/base/EncryptFS/src/disk_crypt.cxx b/dev/base/EncryptFS/src/disk_crypt.cxx
new file mode 100644
index 00000000..e8d64bfe
--- /dev/null
+++ b/dev/base/EncryptFS/src/disk_crypt.cxx
@@ -0,0 +1,14 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#include <base/EncryptFS/disk_crypt.hxx>
+
+enum
+{
+ eEFSFlagEncryptedFree = 0x00,
+ eEFSFlagEncryptedUnlock = 0x3f,
+ eEFSFlagEncryptedLock = 0xf3,
+};