summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/c++/checksum.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-03 19:06:45 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-03 19:06:45 +0100
commit30ba1aab88bd8138a6b3b3e1dbb464e4e67af698 (patch)
tree906bf0c4e0bc5864224038395bfdb12e38876168 /src/libDDK/DriverKit/c++/checksum.h
parentdaf906b02d2ba542f407872db9f7b1da2a5b36c4 (diff)
chore: {DDK, KernelKit}: Improvements and release schedule.v0.1.31v0.1.31-develop
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/c++/checksum.h')
-rw-r--r--src/libDDK/DriverKit/c++/checksum.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/libDDK/DriverKit/c++/checksum.h b/src/libDDK/DriverKit/c++/checksum.h
deleted file mode 100644
index 55d3d58f..00000000
--- a/src/libDDK/DriverKit/c++/checksum.h
+++ /dev/null
@@ -1,38 +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/c++/driver_base.h>
-
-namespace Kernel::DDK {
-
-using IndexableBlob = Char*;
-
-/// @note This uses the FNV 64-bit variant.
-/// @brief Performs a checksum computation for a memory region.
-inline UInt64 rtl_checksum(const IndexableBlob path) {
- if (!path || *path == 0) return 0;
-
- const UInt64 kFNVSeed = 0xcbf29ce484222325ULL;
- const UInt64 kFNVPrime = 0x100000001b3ULL;
-
- UInt64 hash = kFNVSeed;
-
- IndexableBlob path_ = path;
-
- while (*path_) {
- hash ^= (Char) (*path_++);
- hash *= kFNVPrime;
- }
-
- return hash;
-}
-
-using Blob = VoidPtr;
-
-} // namespace Kernel::DDK
-
-#endif