- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .markdownlint-cli2.yaml | ||
| ARCHITECTURE.md | ||
| Cargo.toml | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| rustfmt.toml | ||
| SECURITY.md | ||
lib-constant-time
Small no_std byte-comparison, selection and erasure helpers for EriX.
Callers supply all input and storage; the crate has no dependencies, allocator,
I/O or retained global state.
Purpose of This Repository
The constant_time library provides ct_eq, ct_eq_32, ct_is_zero and
ct_select_u8. Equal-length comparisons visit every byte; unequal lengths
return immediately. Selection accepts every mask and operates per bit.
This source structure does not guarantee compiler output or hardware timing.
erase overwrites the supplied unsigned-integer slice with volatile zeros.
SecretBytes exclusively borrows a fixed byte array and erases it on normal
drop or unwinding. Construct the guard before filling the array. Copies,
register spills, dumps, physical remnants, process termination and forgotten
guards remain outside its protection.
See ARCHITECTURE.md for the contracts and ROADMAP.md for remaining work. Source rustdoc describes each operation and its caller responsibilities.
Clean-Room Policy
EriX code must be original. Do not copy external implementation code, add external Rust crates or use generators that embed third-party code.
License
ISC.
Development Model
Use Rust formatting, strict Clippy, unit tests and warning-denied builds and rustdoc. Preserve documented behavior across host, bare-metal and UEFI targets. See CONTRIBUTING.md for the shared development rules.
Governance Principles
Keep this crate small and independently auditable. Coordinate behavior or API changes with callers through exact signed Git revisions.
Library Boundaries
Input borrows and exclusive storage are the only runtime authority. Callers own secret lifetimes and must assess the selected compiler and target for timing-sensitive use. Erasure does not synchronize concurrent users.
Contact
Development is tracked in the EriX organization. Contact the maintainer at admin@erikinkinen.fi.