summaryrefslogtreecommitdiffhomepage
path: root/dev/base/EncryptFS/src
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
commit8719b4570a2d10dd49a0d3a47e24f5c55bdda85e (patch)
treeba095740888f3768e08b2ea058b0ea6da2d0403d /dev/base/EncryptFS/src
parent45944b3d2dab04b763fcc6d10164fe8069e60b08 (diff)
:boom: A big refactor on the filesystem structure.
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
2 files changed, 26 insertions, 0 deletions
diff --git a/dev/base/EncryptFS/src/EncryptBlock.cxx b/dev/base/EncryptFS/src/EncryptBlock.cxx
new file mode 100644
index 00000000..b3f2fc56
--- /dev/null
+++ b/dev/base/EncryptFS/src/EncryptBlock.cxx
@@ -0,0 +1,14 @@
+/* -------------------------------------------
+
+ 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
new file mode 100644
index 00000000..166d04b3
--- /dev/null
+++ b/dev/base/EncryptFS/src/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;