mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat(rust): Expand Rust kernel layer with SHA3, AES, DCache, Watchdog, JSON tokenizer & quote-aware shell
- Implement FIPS 202 SHA3-256 and SHA3-512 (Keccak-f[1600]) in pure Rust - Implement FIPS 197 AES-128 block cipher in pure Rust - Implement VFS fast path Directory Entry Cache (dcache) in Rust - Implement Kernel Health Watchdog & Heartbeat Monitor in Rust - Implement Zero-Copy JSON Tokenizer & Key-Value extractor in Rust - Implement memory-safe PCI Vendor/Class database in Rust - Add quote-aware tokenization to LazyBox shell parser - Register 'sha3sum', 'dcache', 'watchdog', and 'jsonquery' applets
This commit is contained in:
1 parent
24deed8ead
commit
92bde4c3fa
15 files changed
+831
-6
No files matched your search
@@ -252,8 +252,16 @@ static void shell_process(const char* cmd) {
|
||||
while (*token) {
|
||||
while (*token == ' ') *token++ = '\0';
|
||||
if (*token == '\0') break;
|
||||
if (argc < 16) argv[argc++] = token;
|
||||
while (*token && *token != ' ') token++;
|
||||
|
||||
if (*token == '"' || *token == '\'') {
|
||||
char quote = *token++;
|
||||
if (argc < 16) argv[argc++] = token;
|
||||
while (*token && *token != quote) token++;
|
||||
if (*token == quote) *token++ = '\0';
|
||||
} else {
|
||||
if (argc < 16) argv[argc++] = token;
|
||||
while (*token && *token != ' ') token++;
|
||||
}
|
||||
}
|
||||
if (argc == 0) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user