Add krypteia to no-std WIP crates#527
Open
cslashm wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 adds krypteia, a pure-Rust no_std cryptography workspace, to the no-std crates section.
What it is. Post-quantum (FIPS 203/204/205 — ML-KEM, ML-DSA, SLH-DSA) and classical (RSA, ECC, EdDSA, X25519/X448, AES, ChaCha20-Poly1305, hashes, MACs) primitives. Embedded is a first-class design goal, not an afterthought: no_std, zero runtime dependencies (std/core/alloc only), explicit RAM/stack budgets, written constant-time from the first commit.
Honest maturity status — why I'm sharing it at 0.1 rather than later. It builds and runs no_std for the embedded targets (thumbv6m / thumbv7em Cortex-M, riscv32imc / imac), and the test + side-channel suites pass — but so far validation is under emulation (qemu-user + bare-metal qemu-system), and it's fully functional on host. It has not yet run on physical silicon: the first hardware bring-up (an ESP32-C3 / RISC-V sample) is on the near-term roadmap. Side-channel countermeasures are implemented and host-verified (ctgrind / dudect); on-target power/EM measurement is future work.
So it's a 0.1, but deliberately mature enough to test and to invite early feedback. I'd rather get architecture / API / requirements input from the embedded community now, while the design can still move, than once it's set in stone — remarks on targets, memory model, feature gating, ergonomics are all very welcome.
On AI assistance. Marked 🤖 per the list convention: part of the work is AI-assisted, tracked openly via Co-Authored-By git trailers. Correctness and constant-timeness are decided by tools (NIST ACVP / Wycheproof, ctgrind, dudect), not by the model — not vibe-coded.
Pre-1.0, unaudited, structured toward a lab-class evaluation.
Docs: https://krypteia-rs.dev/
Source: https://codeberg.org/cslashm/krypteia