Skip to main content

Crate rustls_verified_garbage

Crate rustls_verified_garbage 

Source
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 CryptoProvider backed by verified-garbage.
DEFAULT_TLS12_PROVIDER
The default CryptoProvider backed by verified-garbage that only supports TLS1.2.
DEFAULT_TLS13_PROVIDER
The default CryptoProvider backed 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_anchor takes them.