From d48cbe75ef29a9c67c9d176bf58e56ea6448fb9e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 21 Oct 2024 20:23:36 +0200 Subject: IMP: Major refactor of header and source files extensions. Signed-off-by: Amlal El Mahrouss --- dev/base/EncryptFS/build.json | 2 +- dev/base/EncryptFS/disk_crypt.h | 31 +++++++++++++++++++++++++++++++ dev/base/EncryptFS/disk_crypt.hxx | 31 ------------------------------- dev/base/EncryptFS/src/disk_crypt.cc | 14 ++++++++++++++ dev/base/EncryptFS/src/disk_crypt.cxx | 14 -------------- 5 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 dev/base/EncryptFS/disk_crypt.h delete mode 100644 dev/base/EncryptFS/disk_crypt.hxx create mode 100644 dev/base/EncryptFS/src/disk_crypt.cc delete mode 100644 dev/base/EncryptFS/src/disk_crypt.cxx (limited to 'dev/base/EncryptFS') diff --git a/dev/base/EncryptFS/build.json b/dev/base/EncryptFS/build.json index 1f9b018e..4dcefa38 100644 --- a/dev/base/EncryptFS/build.json +++ b/dev/base/EncryptFS/build.json @@ -2,7 +2,7 @@ "compiler_path": "x86_64-w64-mingw32-g++", "compiler_std": "c++20", "headers_path": ["../", "./"], - "sources_path": ["src/*.cxx"], + "sources_path": ["src/*.cc"], "output_name": "efs.zsc", "compiler_flags": [ "-ffreestanding", diff --git a/dev/base/EncryptFS/disk_crypt.h b/dev/base/EncryptFS/disk_crypt.h new file mode 100644 index 00000000..981ebc78 --- /dev/null +++ b/dev/base/EncryptFS/disk_crypt.h @@ -0,0 +1,31 @@ +/* ------------------------------------------- + + Copyright ZKA Web Services Co. + + File: disk_encrypt.h + Purpose: Disk Encryption File System + + Revision History: + + 8/8/2024: Added file (amlel) + +------------------------------------------- */ + +#pragma once + +#include + +namespace Kernel +{ + /**************************************** */ + /// @brief Locks an EFS partition. + /**************************************** */ + + Int32 efs_lock_partition(const Char* partition_name, const Char* password, SizeT length); + + /**************************************** */ + /// @brief Unlocks an EFS partition. + /**************************************** */ + + Int32 efs_unlock_partition(const Char* partition_name, const Char* password, SizeT length); +} // namespace Kernel diff --git a/dev/base/EncryptFS/disk_crypt.hxx b/dev/base/EncryptFS/disk_crypt.hxx deleted file mode 100644 index 3ec4799d..00000000 --- a/dev/base/EncryptFS/disk_crypt.hxx +++ /dev/null @@ -1,31 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - - File: disk_encrypt.hxx - Purpose: Disk Encryption File System - - Revision History: - - 8/8/2024: Added file (amlel) - -------------------------------------------- */ - -#pragma once - -#include - -namespace Kernel -{ - /**************************************** */ - /// @brief Locks an EFS partition. - /**************************************** */ - - Int32 efs_lock_partition(const Char* partition_name, const Char* password, SizeT length); - - /**************************************** */ - /// @brief Unlocks an EFS partition. - /**************************************** */ - - Int32 efs_unlock_partition(const Char* partition_name, const Char* password, SizeT length); -} // namespace Kernel diff --git a/dev/base/EncryptFS/src/disk_crypt.cc b/dev/base/EncryptFS/src/disk_crypt.cc new file mode 100644 index 00000000..334e2d4d --- /dev/null +++ b/dev/base/EncryptFS/src/disk_crypt.cc @@ -0,0 +1,14 @@ +/* ------------------------------------------- + + Copyright ZKA Web Services Co. + +------------------------------------------- */ + +#include + +enum +{ + kEFSFlagEncryptedFree = 0x00, + kEFSFlagEncryptedUnlocked = 0x3f, + kEFSFlagEncryptedLock = 0xf3, +}; diff --git a/dev/base/EncryptFS/src/disk_crypt.cxx b/dev/base/EncryptFS/src/disk_crypt.cxx deleted file mode 100644 index 031a2528..00000000 --- a/dev/base/EncryptFS/src/disk_crypt.cxx +++ /dev/null @@ -1,14 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#include - -enum -{ - kEFSFlagEncryptedFree = 0x00, - kEFSFlagEncryptedUnlocked = 0x3f, - kEFSFlagEncryptedLock = 0xf3, -}; -- cgit v1.2.3