| Crates.io | aman-core |
| lib.rs | aman-core |
| version | 0.1.1 |
| created_at | 2025-12-06 23:39:03.896058+00 |
| updated_at | 2025-12-07 00:28:01.00418+00 |
| description | Core logic and types for the Aman integrity system |
| homepage | |
| repository | https://github.com/theHamdiz/aman |
| max_upload_size | |
| id | 1970915 |
| size | 34,503 |
The brain of the operation.
Pure Rust,no_stdcompatible cryptographic verification logic.
Aman Core is the stripped-down, lightweight engine that powers the main Aman library. If you are building for embedded environments (like ARM Cortex-M, RISC-V) or just want the pure verification logic without the filesystem and CLI baggage, this is where you start.
no_std Native: Zero reliance on the standard library. If you have an allocator, you can run this.[dependencies]
aman-core = "0.1.0"
use aman_core::engine::CoreVerifier;
// 1. Setup your trust anchor (Root Public Key)
let verifier = CoreVerifier::new()
.trust(Box::new(my_key));
// 2. Verify bytes
let data = b"Important firmware update";
let metadata = ...; // Parsed elsewhere
match verifier.verify_content(data, &metadata) {
Ok(_) => { /* Safe to boot */ },
Err(e) => { /* Panic immediately! */ }
}
This crate is the foundation. For the full experience (FS support, CLI, Macros), check out the parent aman crate.