Commit Graph

10 Commits

Author SHA1 Message Date
JohnE 598203b475 core: add a provider lineage for diversity rules
AWS-LC forks BoringSSL, so the two report one lineage and count as one
library when suites demand distinct providers.

Refs: R3
2026-11-16 21:03:10 -05:00
JohnE 9310fe1262 awslc: add AwsLcProvider and registry init
Wires the primitives into CryptoProvider/KemProvider with cached
self-test, benchmark, capabilities and FIPS status.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 59ae2bfa04 awslc: add capability probes and the AEAD benchmark
An algorithm is available only when its live probe works and its KAT
passed, so the engine's gate never admits an unverified algorithm.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE feaecad922 awslc: report FIPS mode only for a FIPS build
fips_mode() is true only with the fips feature (AWS-LC-FIPS) and when
aws_lc_rs::try_fips_mode() succeeds; an open-source build never asks.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE aba0763b3f awslc: add X25519 and ML-KEM known-answer tests
aws-lc-rs has no deterministic ML-KEM encapsulation, so the KAT decapsulates
an OpenSSL-made seed-00 vector pinned to the RustCrypto provider's values.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 3099de4097 awslc: add symmetric known-answer self-tests
Every AEAD, hash, HMAC and HKDF the provider offers gets a published
vector, so the engine's KAT gate can admit it.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 732eb8dd29 awslc: add X25519 and ML-KEM-768/1024
Public keys and ciphertexts use the standard encodings; ML-KEM private
keys are the expanded FIPS 203 dk since aws-lc-rs has no seed keygen API.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 92e3eaf22f awslc: add HKDF-SHA-256/384/512
An empty salt is passed as the explicit zero salt of hash length: same
bytes as RFC 5869 and the other providers, and the form AWS-LC-FIPS approves.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 72c24def82 awslc: add SHA-2, SHA-3 and HMAC-SHA-2
HMAC verification uses aws-lc-rs's constant-time hmac::verify; BLAKE2b
and Poly1305 are not in aws-lc-rs and report FeatureNotCompiled.

Refs: R3
2026-11-16 20:33:07 -05:00
JohnE 0631c1c637 awslc: add the aws-lc-rs provider crate with AEADs
aws-lc-rs (Apache-2.0/ISC) replaces wolfSSL as the vetted provider and
FIPS anchor; start with AES-256-GCM, AES-256-GCM-SIV and ChaCha20-Poly1305.

Refs: R3
2026-11-16 20:33:07 -05:00