roadmap BUILT

442. A crypto provider rustls can use on all three bare-metal targets

Built (2026-09-20), except clause 3, which is repriced into a proposal rather than carried; see ## Follow-on. Minted 2026-09-19 by the maintainer, from calef's ruling in DECISIONS §196 (nife carries TLS: rustls for the protocol, and a crypto provider we make work), which is design/decisions/0196-nife-carries-tls-and-builds-the-provider.md. (Number provisional until the merge queue lands it.)

One decision is owed and it is named below: the provider that works is a dependency, and DECISIONS §46 (thin primitives or whole subsystems; we write everything in between) makes taking one calef's rather than a lane's. Nothing is blocked on the answer.

In brief

The premise was true about §196's table and false about nife's targets, and the difference is the milestone. §196 measured rustls and every candidate provider against the stock bare-metal targets (aarch64-unknown-none-softfloat and its two siblings) on the stable host toolchain, and its own limits paragraph says those are not our targets. nife builds user programs for targets/*-unknown-nife.json: "os": "nife", "std": true, -Zbuild-std against the patched farm. Re-measured there, on the pinned nightly, with entropy_backend wired in:

rustls 0.23.45 plus rustls-rustcrypto 0.0.2-alpha builds and runs on all three architectures. The full table, both failure classes and what each one turned out to be are in notes/cryptography-provider.md.

The two things standing in the way were smaller than "no provider builds" suggested:

The only providers that still fail are the ones written in C, ring and aws-lc-rs, both in their own build scripts. That is §46 holding rather than a disappointment.

What this milestone owed, and what happened

  1. A re-measurement that is ours. Done: script/crypto-probes, eighteen probes times three architectures, run twice (as the crates ship, and with the portable paths forced). Provisional name. Its header records a trap that cost an hour twice and that script/crate-probes may still be in. A probe built under target/ is inside this repository, so the repository's own rust-toolchain.toml beats RUSTUP_TOOLCHAIN for the rustc -Zbuild-std invokes. So std is compiled unpatched, which reads exactly like the crate under test failing.
  2. One provider that builds and passes its own test vectors on all three architectures. Done, and since calef refused the one crate that could have supplied it, the provider is cryptography_provider, assembled here. cryptography_exerciser runs vectors transcribed from FIPS 180-4, RFC 4231, RFC 5869, the GCM specification, RFC 8439, RFC 7748 and FIPS 186-4, and kernel/src/user/cryptography_tests.rs boots it on all three under QEMU. Provisional names. The RSA half is proven against the two hosts that made the case for it rather than against a synthetic key. The full chains from objects.githubusercontent.com (RSA 2048) and ghcr.io (RSA 4096 over a 3072-bit intermediate) are pinned as fixtures and verified through rustls-webpki with this provider's algorithms, anchored on the root the host itself served. That is §196 clause 4's model rather than a system trust store. A flipped signature bit and a certificate offered for the wrong host are both refused, because a verifier that only ever says yes is not one.
  3. A client that speaks TLS 1.3 to one peer, holding that peer's root as a capability (§196 clause 4). Not attempted, deliberately, and this block is the record of that. §196's own BUGS says no HTTP client exists in the tree. A working provider with no client is what 442 was written to produce if the client did not fit, and it did not. Certificate verification is no longer the gap it was when that was written: clause 2 now exercises it against real chains. What is missing is a socket, an HTTP request, and a peer.
  4. An honest BUGS section. Below, and in the note, and in the program's own module docs.

The decisions, and calef made both

rustls-rustcrypto is refused, and that is now DECISIONS §198 (the glue is ours, the primitives are not) rather than only a lane report. calef, 2026-09-20: "rustls-rustcrypto doesn't seem like a high quality dependency." The numbers are in that section and in notes/cryptography-provider.md: 0.0.2-alpha published 2024-04-24, three versions ever with two yanked, 73 crates, pinning majors of sha2, aes-gcm and p256 that all had newer majors during 2026.

rsa is taken. calef, 2026-09-20: "Take rsa." The provider had been built without it, at 53 crates, and that could not honestly be called right. Measured with openssl s_client, github.com is ECDSA P-256 throughout but objects.githubusercontent.com, where a Release asset is actually served, is RSA 2048, and ghcr.io is RSA 4096. A client without RSA verification reaches GitHub and cannot download from it.

So the provider is 67 crates, which is what this block predicted for the written path at equal coverage, and six fewer than the alpha's 73. The size argument is as weak as it can be, and the record says so: the glue was written because it is the piece with the least exposure in the chain, not because it is smaller.

The advisory is answered where a gate can check it. deny.toml carries the tree's first ignore entry, for RUSTSEC-2023-0071, with its argument in the reason field so cargo-deny prints it with the finding. The Marvin attack is a timing side channel in PKCS#1 v1.5 decryption, and this provider verifies signatures and never decrypts, holds no private key and offers no oracle. It names what would end the claim, which is any use of rsa here to decrypt, to sign, or for key transport. And script/supply-chain now scans the two manifests that suppression is about, which it did not before: an ignore for a graph no gate reads is a claim nobody can check. That brought three licences onto the allow-list with their own reasons (ISC for rustls-webpki and untrusted, Unicode-3.0 for a proc-macro dependency that ships nothing).

§46's line, drawn out loud rather than assumed. The primitives are taken. Their correctness includes constant-time behavior and resistance to attacks no specification states, which is what §46 (thin primitives or whole subsystems; we write everything in between) means by won through exposure. aes-gcm and chacha20poly1305 carry NCC Group's 2020 audit in their own README. The glue is written, because a CryptoProvider is five fields that select, name and plumb and compute nothing. RSA PKCS#1 v1.5 verification is still refused as something to write here, even now that rsa is taken and even though it is only public-key arithmetic: Bleichenbacher's forgery and BERserk are spec-reading failures in exactly that code.

What it unblocks

Rung 3c of the trivial install (§157): a package fetched by host name from a source somebody else operates. Rung 3a does not wait for it, because §195 (a recipe vouches, and the owner may overrule) makes a recipe's digest decide what may run and a digest is checkable over any transport.

BUGS

Follow-on

Index row

§196's stock-target table said no crypto provider built on any nife target. Re-measured against this tree's own target specifications, the blockers were a getrandom major entropy_backend did not answer and six lines of build configuration. One of them is a run-time hazard where a crate asks the CPU for SIMD that x86_64-unknown-nife has no ring-3 state for. calef refused rustls-rustcrypto as a dependency and ruled "Take rsa". So nife assembles its own 67-crate CryptoProvider over audited primitives, proven by published vectors and by verifying the real certificate chains of objects.githubusercontent.com (RSA 2048) and ghcr.io (RSA 4096) under QEMU on all three architectures. Clause 3, a TLS client, is repriced into a proposal: no handshake has completed, because there is no peer.