diff options
Diffstat (limited to 'dev/EFS')
| -rw-r--r-- | dev/EFS/EncryptFS.hxx | 6 | ||||
| -rw-r--r-- | dev/EFS/ReadMe.md | 5 | ||||
| -rw-r--r-- | dev/EFS/Sources/EncryptBlock.cxx | 14 | ||||
| -rw-r--r-- | dev/EFS/Sources/Key.cxx | 12 | ||||
| -rw-r--r-- | dev/EFS/build.json | 30 |
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" + ] +} |
