Repository navigation
Backlog
Labels
enhancementNew feature or request
Description
Summary
cas-lib has Ed25519 and X25519 but not their Curve448 counterparts. Ed448 (RFC 8032) and X448 (RFC 7748) give a ~224-bit security level, are allowed in FIPS 186-5 and TLS 1.3, and are the conservative choice where Curve25519's 128-bit level isn't enough.
Upstream
- ed448 0.5 — https://github.com/RustCrypto/signatures/tree/master/ed448
- ed448-goldilocks — https://github.com/RustCrypto/elliptic-curves/tree/master/ed448-goldilocks
- x448 — https://github.com/RustCrypto/elliptic-curves/tree/master/x448
Scope
- Ed448 keygen, sign, verify (with optional context string)
- X448 keygen and Diffie-Hellman
Implementation notes
- Follow the module pattern: trait in
cas_<module>.rs, impl in<algorithm>.rs, declared insrc/lib.rs(no top-level re-exports). - Return
CasResult<T>and never panic (a panic across the FFI boundary is UB); addCasErrorvariants only by appending (stable ABI codes). - Zeroize intermediate secret buffers with
zeroize::Zeroizing; structs holding secrets get a redactingDebugimpl (seesrc/pqc/cas_pqc.rs). - Mirror the Ed25519 (
src/signatures/ed25519.rs) and X25519 (src/key_exchange/x25519.rs) APIs and result structs. - Use strict verification for Ed448 (as Security (Low):
ed25519_verify_with_key_pairuses permissive (non-strict) verification #118 did for Ed25519) and reject low-order / all-zero X448 results (as Security (Medium): X25519 accepts low-order public keys, and the X25519-to-AES helpers share one HKDFinfo#112 did for X25519). - Version choice: the latest stable
ed448-goldilocks(0.9) andx448(0.6) are older than the 0.14 pre-releases in the elliptic-curves workspace. Pick one generation for both crates, checkcargo audit, and say which in the PR.
Tests
- Wycheproof:
ed448_test.json,x448_test.json. - RFC 8032 section 7.4 and RFC 7748 section 6.2 vectors under
tests/data/.
Docs
- Add a complete, runnable
fn main()example for each new API todocs/EXAMPLES.mdand keep its Table of Contents in sync.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
WingZer0o commentedon Nov 27, 2026
Downstream tracking issues: