summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/ObjectKit/checksum.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
commit38cddd5dc02f886e5cb3a0e386f0f7a1e6c8da86 (patch)
tree69b8bfc0a3fc403abf165d501e18b57e63a2405e /src/libDDK/DriverKit/ObjectKit/checksum.h
parent0871e5925e99e9a6f2d1eaf51ae82c7b4f740560 (diff)
feat: ddk!: Breaking changes, the DDK has been reworked in C++ instead.
chore: public, kernel: fixes and important patches. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/ObjectKit/checksum.h')
-rw-r--r--src/libDDK/DriverKit/ObjectKit/checksum.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/libDDK/DriverKit/ObjectKit/checksum.h b/src/libDDK/DriverKit/ObjectKit/checksum.h
deleted file mode 100644
index 92c63603..00000000
--- a/src/libDDK/DriverKit/ObjectKit/checksum.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
-// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/nekernel-org/nekernel
-
-#ifndef DRIVERKIT_CHECKSUM_H
-#define DRIVERKIT_CHECKSUM_H
-
-#include <DriverKit/ObjectKit/driver_base.h>
-
-namespace Kernel::DDK {
-
-using IndexableBlob = char*;
-using Indexable = char;
-
-/// @note This uses the FNV 64-bit variant.
-/// @brief Performs a checksum computation for a memory region.
-inline uintptr_t rtl_checksum(const IndexableBlob path) {
- if (!path || *path == 0) return 0;
-
- const uintptr_t kFNVSeed = 0xcbf29ce484222325ULL;
- const uintptr_t kFNVPrime = 0x100000001b3ULL;
-
- uintptr_t hash = kFNVSeed;
-
- IndexableBlob path_ = path;
-
- while (*path_) {
- hash ^= (Indexable) (*path_++);
- hash *= kFNVPrime;
- }
-
- return hash;
-}
-
-using Blob = void*;
-
-} // namespace Kernel::DDK
-
-#endif