Source inventory and design decisions
Current source is the implementation authority. Source trees outside this harness are read-only inputs; copies must include exact upstream identity, license and local modifications. Each family records details in its own README.
| Family | Existing reference | Reuse opportunity |
|---|---|---|
| SHA-2 / HMAC | Motoko experiments plugins/plugins/{sha256,sha512,hmac-sha2}/runtime |
Direct Rust streaming state instead of Motoko carrier serialization |
| BLAKE3 | Showtime crypto/blake3 |
Portable baseline and separately identified wasm64 SIMD patch |
| secp256k1 | Showtime crypto/ecdsa |
GLV/wNAF, prepared keys and inversion-free projective comparison |
| X25519 / HPKE | Showtime crypto/envelope* |
Cached recipient public key, prepared fixed contexts, in-place AEAD |
| RSA3072 | Showtime crypto/rsa3072 |
BearSSL i31 fixed-width exponent-65537 verification |
| ML-KEM | Showtime crypto/mlkem |
Fixed-size buffers and ACVP fixtures; compare explicit versions |
These are reuse candidates, not fresh benchmark conclusions. Current published crate releases differ from several optimized local pins. Never silently label an old optimized vendor as the latest release.
Primary specifications
- SHA-2, FIPS 180-4.
- HMAC, RFC 2104.
- HKDF, RFC 5869.
- ChaCha20 / Poly1305, RFC 8439.
- X25519, RFC 7748.
- HPKE, RFC 9180.
- Ed25519, RFC 8032.
- BIP340.
- RSA-PSS, RFC 8017.
- AES-GCM-SIV, RFC 8452.
- Ascon, SP 800-232.
- ML-KEM, FIPS 203.
Secret operations retain constant-time implementations. Public-input variable-time verification is a distinct documented choice. Experimental signature formats and research-only curves never masquerade as standard encodings.