JohnE
4b79e83063
boring: report FIPS mode only for a validated module
...
A fips build from source is not a certified module; only fips-validated,
which needs a prebuilt validated BoringCrypto, may report FIPS. Also wipes
plaintext on a failed seal and the expected tag after verify.
Refs: R3
2026-11-16 21:04:42 -05:00
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
19ac46f165
boring: add BoringProvider with cached KATs and fips mode
...
Capabilities are computed once; fips_mode needs both the fips feature and
FIPS_mode() at run time.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
5702935fc7
boring: add capability probes and AEAD benchmark
...
An algorithm is available only when its live probe and its KAT pass, so
the engine gate never sees an untested BoringSSL algorithm.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
789b77fd7a
boring: add known-answer self-test for every algorithm
...
The engine gate offers only algorithms with a passing KAT; the vectors are
the ones the RustCrypto and wolfSSL providers already pin.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
4051bd6ccd
boring: add X25519 and ML-KEM-768/1024 KEMs
...
Same key, ciphertext and secret formats as the other providers, so keys
and ciphertexts interoperate across libraries.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
944b335454
boring: add AES-GCM and ChaCha20-Poly1305 AEADs
...
AES-256-GCM, ChaCha20-Poly1305 and XChaCha20-Poly1305 via EVP_AEAD, in the
ciphertext||tag format the other providers use.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
da2ed16c8d
boring: add HKDF-SHA-2 key derivation
...
Uses BoringSSL's native HKDF; empty salt and length cap match the other
providers so the CCC key schedule derives the same keys.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
01fb73fb4c
boring: add HMAC-SHA-2 with constant-time verify
...
HMAC-SHA-256/384/512 from BoringSSL; tags are compared with CRYPTO_memcmp.
Refs: R3
2026-11-16 20:26:52 -05:00
JohnE
0ed4d9bb19
boring: add BoringSSL provider crate with SHA-2
...
Second native provider after the move off wolfSSL, backed by boring 5.5.0.
Starts with the crate skeleton and SHA-256/384/512.
Refs: R3
2026-11-16 20:26:52 -05:00