Commit Graph

47 Commits

Author SHA1 Message Date
JohnE ec3db2efac rustcrypto: add McEliece 460896f self-test, mark it available
A seeded KAT pins keygen, encapsulation and decapsulation, so a
broken build fails closed instead of offering the KEM.

Refs: R3-9
2026-11-16 19:56:43 -05:00
JohnE 7ba9f6c996 rustcrypto: add Classic McEliece 460896f behind a feature
Ultra U2 needs a conservative KEM; work runs on an 8 MiB worker stack
so small caller threads cannot overflow. Not yet marked available.

Refs: R3-9
2026-11-16 19:56:43 -05:00
JohnE 3e0481901c core: add Classic McEliece 460896f KEM ID
Ultra U2 uses the f variant for steady keygen; ID 54 stays as is.
Providers report it as not compiled until they implement it.

Refs: R3-9
2026-11-16 19:56:43 -05:00
JohnE 92c75616ef cascade: add Argon2id with explicit parameters
Keyslots record their own Argon2id costs per profile; the providers'
Argon2id has one fixed set. Cross-checked against both providers.
Refs: R5-3
2026-11-16 19:56:43 -05:00
JohnE 9a39f9e1b8 docs: record CCC v2 benchmark results
Ultra's 3x16 cascade costs under 1 ms per 4 KiB message on M3.
Refs: R3
2026-11-16 19:56:43 -05:00
JohnE 66438b7049 cascade: add the 3-, 9- and 48-layer benchmark
The R3 exit asks for recorded seal and open costs of long suites.
Refs: R3-2
2026-11-16 19:56:43 -05:00
JohnE 71d07bd495 cascade: add RFC 9180 HPKE base mode over the providers
Inbox seals and LGP hand-outs use X-Wing HPKE with the vetted AEAD and
KDF; interop is checked against the independent hpke crate.
Refs: R3-9
2026-11-16 19:56:43 -05:00
JohnE 9ee740497b cascade: test built-in suites with both real providers
Each suite resolves and round-trips at 1, 3 and 16 rounds, and release
policy refuses this non-FIPS build (fail closed, D-26).
Refs: R3-3, R3-7
2026-11-16 19:56:43 -05:00
JohnE ba0cda4d26 conformance: pin cross-provider vectors for wolfssl and rustcrypto
Every algorithm both providers offer must give byte-identical output;
the vectors are checked in so CI catches drift in either provider.
Refs: R3-6
2026-11-16 19:56:43 -05:00
JohnE 5184dbd6ef rustcrypto: add provider, capabilities and benchmark
Registers as "rustcrypto" (fips_mode false); an algorithm is available
only if its live probe and its self-test both pass (fail closed, D-28).
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE af11468d97 rustcrypto: add HKDF-SHA-384 self-test vector
Every offered algorithm needs a KAT before it is marked available;
the value is the RFC 5869 TC1 inputs checked against OpenSSL.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE 66ec0f0685 rustcrypto: add KDF and KEM self-test vectors
HKDF, Argon2id (RFC 9106), X25519 and X-Wing use published vectors;
ML-KEM seed keys are pinned against OpenSSL 3.6 deterministic encaps.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE 6a321e3efc rustcrypto: add AEAD, hash and MAC self-test vectors
Startup self-tests must fail closed (D-28); each symmetric algorithm
gets an RFC or NIST known-answer vector, including tag rejection.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE 2f1248e447 rustcrypto: add X25519, ML-KEM and X-Wing KEMs
Pure-Rust KEMs for the hybrid key agreement; ML-KEM keys are 64-byte
FIPS 203 seeds and X25519 keeps the wolfSSL ephemeral-DH convention.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE 2a8dbdcd6b rustcrypto: add HKDF, BLAKE2b KDF and Argon2id
Same semantics as the wolfSSL provider (zero salt, 255*HashLen cap,
64 MiB/3/4 Argon2id) so either provider derives identical keys.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE bb5473eeca rustcrypto: add hash and MAC primitives
SHA-2, SHA-3 and BLAKE2b digests plus HMAC, keyed BLAKE2b and Poly1305,
matching the wolfSSL provider's key and tag conventions.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE bc589960c8 rustcrypto: add pure-Rust provider crate with AEADs
Second, independent AEAD implementation for cascade layers (provider
diversity): AES-256-GCM, AES-256-GCM-SIV, (X)ChaCha20-Poly1305, Ascon-AEAD128.
Refs: R3-4
2026-11-16 19:56:43 -05:00
JohnE 743e9ee00e cascade: add STREAM mode for blobs
64 KiB segments with counter and last-flag nonces, so blobs cannot be
reordered or truncated, with memory bounded by one segment.
Refs: R3-2
2026-11-16 19:56:43 -05:00
JohnE 7058c5ffa4 cascade: add CCC v2 seal and open with suite policy
Independent HKDF-SHA-512 key and nonce per layer per round, AAD bound to
suite and layout, at most 16 rounds, fail closed on policy or self-test.
Refs: R3-2, R3-3, R3-6
2026-11-16 19:56:43 -05:00
JohnE 7776380a93 cascade: add secret types and bucket padding
Secrets never print and are wiped on drop (S8); padding hides sizes
behind buckets and unpads strictly.
Refs: R3-2, R3-8
2026-11-16 19:56:43 -05:00
JohnE f8c64390e3 wolfssl: fix HKDF-SHA-512 extract
wc_Tls13_HKDF_Extract rejects SHA-512 here, so every HKDF-SHA-512 call
failed; extract is now HMAC(salt, ikm), pinned by reference vectors.
Refs: R3-2
2026-11-16 19:56:43 -05:00
JohnE 7a10b28f2d core: add GCM-SIV, Ascon-AEAD128, X-Wing and tiers
The Rust registry becomes the single source of algorithm IDs and tiers
for CCC v2 (G-8); existing IDs keep their Dart values until R10.
Refs: R3-1
2026-11-16 19:56:43 -05:00
JohnE 110d33443f workspace: bump version to 0.2.0 and set authors
Owner's pending version bump, committed before merging the v2 work.

Refs: R3
2026-11-16 19:56:34 -05:00
JohnE 3c3fd39ab8 MOD: taskfile cleanup 2026-04-30 22:15:00 -07:00
JohnE 80e0e65462 FIX: android ndk path set for cross compile build chain 2026-04-30 20:26:37 -07:00
JohnE cbad181ae6 FIX: wc_XChaCha20Poly1305_Init issues with null AAD when length 0, aad.as_prt() always passed now; also added mroe tests 2026-04-16 16:31:05 -07:00
JohnE 4609e43cc8 MOD: docs renamed for ccc 2026-03-16 02:16:31 -07:00
JohnE 919d4bcc95 MOD: removed debug code 2026-03-13 19:27:34 -07:00
JohnE c9fd4542d7 FIX: build iOS fixes, parse the CMake-generated options.h to extract all #define directives 2026-03-13 19:26:50 -07:00
JohnE b1873b27be FIX: dummy forgot to export tests 2026-03-11 21:53:15 -07:00
JohnE 3ea964d3d9 MOD: cleanup move tests out of reg classes 2026-03-11 21:34:31 -07:00
JohnE cc72bb8919 FIX: test data was not accurate for AEAD 2026-03-11 21:33:48 -07:00
JohnE c82d472004 MOD: fix taskfile for default 2026-03-11 16:24:13 -07:00
JohnE 58389ad685 NEW: build scripts 2026-03-11 16:12:55 -07:00
JohnE 68836cfff4 MOD: formatting 2026-03-11 16:12:12 -07:00
JohnE 971f1aeaaa MOD: fixed warnings 2026-03-11 01:47:24 -07:00
JohnE aa61de33a2 MOD: docs included 2026-03-03 09:59:50 -08:00
JohnE 7407a92e69 MOD: docs for design and states of milestones, phases 2026-02-26 13:59:09 -08:00
JohnE 90b58909cc MOD: ccc-crypto-core crate 2026-02-26 13:58:40 -08:00
JohnE 3003ed03f8 MOD: agent instructions 2026-02-26 13:57:34 -08:00
JohnE 836cf5063e MOD: milestone 1 complete, tests all pass 2026-02-26 13:52:29 -08:00
JohnE db897b5abe MOD: decupple this rust project from dart 2026-02-24 18:47:25 -08:00
JohnE c1d6086214 MOD: build for macos with cargo binaries working 2026-02-24 16:22:59 -08:00
JohnE 4a7a6033b0 FIX: 3 bad test vectors, 3 failures was incorrect expected values in the conformance test vectors 2026-02-23 23:37:04 -08:00
JohnE 3b226d0319 FIX: lots of mis-match between what's in the generated bindings and what our code calls with wolfcrypt 2026-02-23 18:01:22 -08:00
JohnE 3c9320ffa5 NEW: first draft of crates 2026-02-23 14:59:04 -08:00
JohnE df1de9d99d NEW: init commit 2026-02-23 02:03:57 -08:00