134 refactor hashing feature as a character device #142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new device abstraction for cryptographic hashing, integrates it into the authentication system, and updates the virtual file system and device registration across multiple platforms. The most significant changes include the addition of the
devicemodule, implementation of theHashDevice, and refactoring of authentication logic to use the new device-based hashing approach.Device Abstraction and Implementation
devicemodule (modules/device) with ahashsubmodule that defines theHashAlgorithmenum and control commands for hash operations (RESET,SET_ALGORITHM). [1] [2] [3]HashDeviceindrivers/shared/src/devices/hash.rs, supporting multiple hash algorithms and device operations (open,close,read,write,control).deviceas a workspace member and dependency inCargo.tomlfiles throughout the project. [1] [2] [3] [4]Authentication System Refactor
modules/authentication/src/hash.rsto use the new/devices/hasherdevice via async file operations, replacing direct hashing with thesha2crate. [1] [2] [3]Device Registration and Platform Integration
HashDeviceas a character device at/devices/hasherin native, wasm, and testing environments, making it available for use in those platforms. [1] [2] [3]drivers/shared/src/devices/mod.rsto includeHashDevice.