A modern TLS library in Rust
This report summarizes scanner evidence for rustls/rustls, a Rust project with 7,723 GitHub stars. SynthScan examined 91,409 lines of code across 244 source files, recording 272 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 3.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 265 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 272 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 272 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rustls-aws-lc-rs/src/hpke.rs | 601 | EncapsulatedSecret(enc.as_ref().into()), | COMMENT |
| LOW | rustls-aws-lc-rs/src/kx.rs | 121 | COMMENT | |
| LOW | rustls-aws-lc-rs/src/kx.rs | 181 | /// The corresponding ring agreement::Algorithm | COMMENT |
| LOW | rustls-aws-lc-rs/src/lib.rs | 1 | //! A `CryptoProvider` implementation backed by *aws-lc-rs*. | COMMENT |
| LOW | rustls-aws-lc-rs/src/lib.rs | 181 | fips() | COMMENT |
| LOW | rustls-aws-lc-rs/src/verify.rs | 281 | /// > When any of these four object identifiers appears within an | COMMENT |
| LOW | rustls-aws-lc-rs/src/verify.rs | 301 | /// > When any of these four object identifiers appears within an | COMMENT |
| LOW | admin/threads-seq.rs | 1 | #!/usr/bin/env -S cargo +nightly --quiet -Zscript | COMMENT |
| LOW | rustls-ring/src/kx.rs | 21 | /// The IANA "TLS Supported Groups" name of the group | COMMENT |
| LOW | rustls-ring/src/ticketer.rs | 101 | return None; | COMMENT |
| LOW | rustls-ring/src/verify.rs | 161 | signature_alg_id: alg_id::RSA_PKCS1_SHA512, | COMMENT |
| LOW | rustls-ring/src/verify.rs | 181 | )), | COMMENT |
| LOW | rustls-ring/src/verify.rs | 201 | )), | COMMENT |
| LOW | rustls-post-quantum/src/lib.rs | 1 | //! This crate provides a [`CryptoProvider`] built on the default aws-lc-rs provider, | COMMENT |
| LOW | rustls-test/tests/key_log_file_env/tests.rs | 1 | //! Tests of [`rustls::KeyLogFile`] that require us to set environment variables. | COMMENT |
| LOW | rustls-test/benches/verifybench.rs | 1 | //! This program does benchmarking of the functions in verify.rs, | COMMENT |
| LOW | rustls-test/src/lib.rs | 1041 | COMMENT | |
| LOW | rustls-util/src/stream.rs | 1 | #![allow(clippy::std_instead_of_core)] // awaits core::io::IoSlice in stable (1.98) | COMMENT |
| LOW | rustls-util/src/stream.rs | 281 | .map_err(|err| Error::new(ErrorKind::InvalidData, err)) | COMMENT |
| LOW | rustls-util/src/stream.rs | 301 | COMMENT | |
| LOW | rustls-util/src/lib.rs | 21 | /// What this means depends on the connection state: | COMMENT |
| LOW | rustls-util/src/key_log_file.rs | 81 | COMMENT | |
| LOW | examples/src/bin/simple-0rtt-client.rs | 1 | //! This is an example client that uses rustls for TLS, and sends early 0-RTT data. | COMMENT |
| LOW | examples/src/bin/tls-client-mio.rs | 1 | //! This is an example client that uses rustls for TLS, and [mio] for I/O. | COMMENT |
| LOW | examples/src/bin/tls-client-mio.rs | 221 | } | COMMENT |
| LOW | examples/src/bin/tls-client-mio.rs | 241 | #[clap(long)] | COMMENT |
| LOW | examples/src/bin/ech-client.rs | 1 | //! This is a simple example demonstrating how to use Encrypted Client Hello (ECH) with | COMMENT |
| LOW | examples/src/bin/ech-client.rs | 181 | /// Connects to the TLS server at hostname:PORT. The default PORT | COMMENT |
| LOW | examples/src/bin/ech-client.rs | 221 | /// Skip looking up an ECH config and read it from the provided file (in binary TLS encoding). | COMMENT |
| LOW | examples/src/bin/simple-0rtt-server.rs | 1 | //! This is an example server that streams 0-RTT early data from the client. | COMMENT |
| LOW | examples/src/bin/server-acceptor.rs | 341 | /// the client identity being included or excluded in the revocation | COMMENT |
| LOW | examples/src/bin/tls-server-mio.rs | 1 | //! This is an example server that uses rustls for TLS, and [mio] for I/O. | COMMENT |
| LOW | examples/src/bin/tls-server-mio.rs | 441 | /// `forward` means the server forwards plaintext to a connection made to `localhost:fport`. | COMMENT |
| LOW | examples/src/bin/tls-server-mio.rs | 461 | #[clap(long)] | COMMENT |
| LOW | ci-bench/src/util.rs | 361 | //! | COMMENT |
| LOW | ci-bench/src/main.rs | 41 | COMMENT | |
| LOW | rustls/src/tls12.rs | 21 | /// A TLS 1.2 cipher suite supported by rustls. | COMMENT |
| LOW | rustls/src/tls12.rs | 41 | /// If you have a TLS1.2 PRF implementation, you should directly implement the [`crypto::tls12::Prf`] trait. | COMMENT |
| LOW | rustls/src/quic.rs | 101 | /// [`Accepted::client_hello()`] and providing it to [`Accepted::choose_config()`]. | COMMENT |
| LOW | rustls/src/quic.rs | 201 | /// While the transport parameters are available before the handshake completes, | COMMENT |
| LOW | rustls/src/quic.rs | 601 | /// [Header Protection Sample]. | COMMENT |
| LOW | rustls/src/quic.rs | 621 | first: &mut u8, | COMMENT |
| LOW | rustls/src/quic.rs | 661 | /// Takes a `packet_number` and optional `path_id`, used to derive the nonce; the packet | COMMENT |
| LOW | rustls/src/quic.rs | 701 | /// `confidentiality_limit` packets, an attacker gains an advantage in distinguishing it | COMMENT |
| LOW | rustls/src/quic.rs | 881 | /// | COMMENT |
| LOW | rustls/src/x509.rs | 121 | #[test] | COMMENT |
| LOW | rustls/src/lib.rs | 1 | //! # Rustls - a modern TLS library | COMMENT |
| LOW | rustls/src/lib.rs | 21 | //! [`crypto::CryptoProvider`]: crate::crypto::CryptoProvider | COMMENT |
| LOW | rustls/src/lib.rs | 41 | //! (for example, it does not support post-quantum algorithms). | COMMENT |
| LOW | rustls/src/lib.rs | 61 | //! | COMMENT |
| LOW | rustls/src/lib.rs | 81 | //! [PROVIDERS.md]: https://github.com/rustls/rustls/blob/main/PROVIDERS.md | COMMENT |
| LOW | rustls/src/lib.rs | 101 | //! | COMMENT |
| LOW | rustls/src/lib.rs | 121 | //! | COMMENT |
| LOW | rustls/src/lib.rs | 141 | //! [`webpki_roots`]: https://crates.io/crates/webpki-roots | COMMENT |
| LOW | rustls/src/lib.rs | 161 | //! # use std::sync::Arc; | COMMENT |
| LOW | rustls/src/lib.rs | 181 | //! data to send to the peer -- such as `build()` above and `client.read_tls()` -- | COMMENT |
| LOW | rustls/src/lib.rs | 201 | //! | COMMENT |
| LOW | rustls/src/lib.rs | 221 | //! # fn connect(_address: &str, _port: u16) -> Socket { | COMMENT |
| LOW | rustls/src/lib.rs | 241 | //! if !sent_request && !client.is_handshaking() { | COMMENT |
| LOW | rustls/src/lib.rs | 261 | //! | COMMENT |
| 204 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | rustls/src/conn/split.rs | 369 | /// ╭────────────────╮ | COMMENT |
| MEDIUM⚡ | rustls/src/conn/split.rs | 370 | /// ╭───────▶│ ReceiveTraffic │ | COMMENT |
| MEDIUM⚡ | rustls/src/conn/split.rs | 371 | /// │ ╰───────┬────────╯ | COMMENT |
| MEDIUM⚡ | rustls/src/conn/split.rs | 374 | /// ╰────╭───────────────────────╮ | COMMENT |
| MEDIUM⚡ | rustls/src/conn/split.rs | 376 | /// ╭───▶╰──┬────────────────────╯ | COMMENT |
| MEDIUM⚡ | rustls/src/conn/split.rs | 381 | /// ╰───────┴──────────────╯ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | rustls/src/client/tls13.rs | 1534 | session_storage: st.hs.config.resumption.store.clone(), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | rustls/src/error/mod.rs | 1609 | /// producing no output as requested.) | COMMENT |