Expand description
A rustls CryptoProvider whose cryptography is verified-garbage’s:
formally verified assembly, generated from Lean.
It offers what rustls’ aws-lc-rs provider does: TLS 1.2 and 1.3 with AES-GCM and ChaCha20-Poly1305; X25519, P-256, P-384, ML-KEM and the X25519MLKEM768 and SECP256R1MLKEM768 hybrids; signatures with RSA (PKCS #1 v1.5 and PSS), ECDSA (P-256, P-384, P-521), Ed25519 and ML-DSA; session tickets; and QUIC’s packet and header protection. Keys are read with rust-asn1. HPKE (for ECH) is not provided.
Use it like:
let config = ClientConfig::builder(Arc::new(rustls_verified_garbage::DEFAULT_PROVIDER))
.with_root_certificates(roots)
.with_no_client_auth();To offer other suites or groups, replace DEFAULT_PROVIDER’s with those
of cipher_suite or kx_group.
Modules§
- cipher_
suite - The cipher suites this provider supports.
- kx_
group - The key exchange groups this provider supports.
Constants§
- DEFAULT_
PROVIDER - The default
CryptoProviderbacked by verified-garbage. - DEFAULT_
TLS12_ PROVIDER - The default
CryptoProviderbacked by verified-garbage that only supports TLS1.2. - DEFAULT_
TLS13_ PROVIDER - The default
CryptoProviderbacked by verified-garbage that only supports TLS1.3.
Statics§
- ALL_
VERIFICATION_ ALGS - All the signature verification algorithms supported by this provider, as
rustls::client::verify_identity_signed_by_trust_anchortakes them.