Fwd: [EXT] openssl-rs, a native Rust reimplementation of OpenSSL 3.6.4 targeting source, ABI, and behavioural compatibility.

Riaan de Beer rdebeer.infinityabundance at gmail.com
Fri Nov 20 13:03:38 AEDT 2026


Hi Uri,

Thanks for even taking the time to look at openssl-rs and for the question.

I have a lot of respect for rustls and the work its maintainers have done.
I see the two projects as addressing different needs rather than competing
directly.

Rustls is primarily a modern TLS implementation, with a focused API and
established cryptographic providers. For greenfield Rust applications
needing TLS, I would recommend rustls without hesitation. It's mature,
well-maintained, and has a much stronger production track record than my
project.

OpenSSL-RS is aimed more at the brownfield problem: existing software that
already depends on OpenSSL's APIs and ABI, where migrating to a different
cryptographic library may require substantial changes or simply isn't
practical.

My goal is to explore whether it's possible to retain OpenSSL's
compatibility contract while progressively replacing memory-unsafe
implementation mechanisms with Rust's ownership and type system.

Correct me if I'm wrong, but in my opinion OpenSSH is an interesting
example because it uses OpenSSL's libcrypto interfaces rather than TLS.
Rustls doesn't provide a direct replacement for those interfaces, whereas
OpenSSL-RS is attempting to preserve them.

So far, I've been able to build and exercise unmodified OpenSSH 9.9p1
client and server binaries against OpenSSL-RS on Linux x86-64, including
functional SSH tests and a scoped memory-safety analysis. The results and
their limitations are documented in the repository.

I should emphasize that OpenSSL-RS is still experimental. There is a great
deal of verification and hardening work ahead, and I certainly wouldn't
suggest that it has reached the maturity, security assurance, or
operational reliability of established implementations. The memory-safety
evidence is encouraging within its measured scope, but it shouldn't be
interpreted as proof of overall security.

In short, I'd currently recommend rustls for greenfield TLS development,
and established OpenSSL-compatible libraries for production brownfield
applications. OpenSSL-RS is an attempt to investigate whether those
brownfield applications might eventually benefit from stronger
memory-safety guarantees without needing to change their existing
interfaces.

I don't know yet how far that approach can be taken in practice, but I
think it's worth exploring, and I'd be grateful for any technical feedback
from people with more experience maintaining critical software such as
OpenSSH.

Thanks again for your interest.

Best regards,
Riaan

On Fri, Nov 20, 2026 at 1:25 AM Blumenthal, Uri - 0553 - MITLL <
uri at ll.mit.edu> wrote:

> How does your openssl-rs compare with rustls
> <https://crates.io/crates/rustls> crate (pretty well-maintained,
> currently at v1.71.0)? I.e., when would I want to use one, or the other,
> and why?
>
> --
> V/R,
> Uri
>
> ------------------------------
> *From: *openssh-unix-dev <openssh-unix-dev-bounces+uri=
> ll.mit.edu at mindrot.org> on behalf of Riaan de Beer <
> rdebeer.infinityabundance at gmail.com>
> *Date: *Thursday, November 19, 2026 at 19:53
> *To: *openssh-unix-dev at mindrot.org <openssh-unix-dev at mindrot.org>
> *Subject: *[EXT] openssl-rs, a native Rust reimplementation of OpenSSL
> 3.6.4 targeting source, ABI, and behavioural compatibility.
>
> !-------------------------------------------------------------------|
>   This Message Is From an External Sender
>   This message came from outside the Laboratory.
> |-------------------------------------------------------------------!
>
> Hello OpenSSH developers,
>
> I'm the developer of openssl-rs, a native Rust reimplementation of OpenSSL
> 3.6.4 targeting source, ABI, and behavioural compatibility.
>
> Repository:
> https://github.com/infinityabundance/openssl-rs
>
> https://crates.io/crates/openssl-rs
>
> I'm reaching out because OpenSSH Portable is the first downstream consumer
> for which I've completed a scoped compatibility and memory-safety evidence
> campaign.
>
> Using unmodified OpenSSH 9.9p1 client and server binaries on Linux x86-64,
> the recorded results include:
>
>    -
>
>    Functional L7 tests covering SSH login, key operations, algorithm
>    negotiation, concurrency and SFTP.
>    -
>
>    Successful comparisons against an OpenSSL-linked reference.
>    -
>
>    A conservative dependency-closure analysis reporting 290/290 scoped
>    obligations discharged, with no unresolved target-bounded indirect-call
>    sites.
>    -
>
>    Focused Miri, AddressSanitizer and ThreadSanitizer testing, with
>    documented coverage limitations.
>
> The project aims to eliminate classes of memory-safety vulnerabilities
> through Rust ownership and carefully controlled FFI boundaries, while
> preserving compatibility with existing C consumers.
>
> I want to distinguish this work from a general security claim: the library
> is not yet fully verified or independently established to be safer than
> OpenSSL. The OpenSSH-specific safety graduation is an internal,
> scope-limited verdict.
>
>
> https://github.com/infinityabundance/openssl-rs/blob/main/evidence/SAFE-COMPATIBLE-openssh-b85c.json
>
>
> https://github.com/infinityabundance/openssl-rs/blob/main/evidence/b85c-adjudication.json
>
> I'd appreciate your perspective on what additional compatibility,
> cryptographic assurance, memory-safety or operational evidence would be
> required before this could be considered a credible alternative libcrypto
> implementation for OpenSSH Portable.
>
> I'm interested in technical feedback and in understanding the standards the
> OpenSSH team would expect.
>
> Thank you for your work on OpenSSH and for considering this.
>
> Best regards
> Riaan de Beer
> https://github.com/infinityabundance
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
>


More information about the openssh-unix-dev mailing list