OpenSSL VS ring

Compare OpenSSL vs ring and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
OpenSSL ring
149 28
24,142 3,560
1.5% -
9.9 9.8
7 days ago 1 day ago
C Assembly
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

OpenSSL

Posts with mentions or reviews of OpenSSL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-07.
  • Heartbleed and XZ Backdoor Learnings: Open Source Infrastructure Can Be Improved Efficiently With Moderate Funding
    2 projects | dev.to | 7 Apr 2024
    Today, April 7th, 2024, marks the 10-year anniversary since CVE-2014-0160 was published. This security vulnerability known as "Heartbleed" was a flaw in the OpenSSL cryptography software, the most popular option to implement Transport Layer Security (TLS). In more layman's terms, if you type https:// in your browser address bar, chances are high that you are interacting with OpenSSL.
  • Ask HN: How does the xz backdoor replace RSA_public_decrypt?
    1 project | news.ycombinator.com | 1 Apr 2024
    At this point I pretty much understand the entire process on how the xz backdoor came to be: its execution stages, extraction from binary "test" files etc. But one thing puzzles me: how can the ifunc mechanism be used to replace something like RSA_public_decrypt? Granted this probably stems from my lack of understanding of ifunc, but I was under the impression that in order for the ifunc mechanism to work in your code, you have to explicitly mark specific function with multiple implementations with __attribute__ ((ifunc ("the_resolver_function"))). Looking at the source code of the RSA function in question, ifunc attribute isn't present:

    https://github.com/openssl/openssl/blob/master/crypto/rsa/rsa_crpt.c#L51

    So how does the backdoor actually replace the call? Does this means that the ifunc mechanism can be used to override pretty much anything on the system?

  • Use of HTTPS Resource Records
    1 project | news.ycombinator.com | 4 Jan 2024
    OpenSSL and Go crypt/tls has no support yet, so none of the webservers that depend on them support it. Apache, Nginx, and Caddy, they all need upstream ECH support first.

    - https://github.com/openssl/openssl/issues/7482

    - https://github.com/openssl/openssl/pull/22938

    - https://github.com/golang/go/issues/63369

  • openssl-3.2.0 released
    1 project | /r/linux | 25 Nov 2023
  • Large performance degradation in OpenSSL 3
    1 project | news.ycombinator.com | 6 Oct 2023
  • OpenSSL 3.2 Alpha 2
    1 project | news.ycombinator.com | 30 Sep 2023
  • Encrypted Client Hello – the last puzzle piece to privacy
    4 projects | news.ycombinator.com | 29 Sep 2023
    If I'm understanding the draft correctly, I think the webserver you're hosting your sites on would need it implemented as it requires private keys and ECH configuration. In the example of nginx since it uses openssl, openssl would need to implement it. I found an issue on their Github but it's still open: https://github.com/openssl/openssl/issues/7482
  • eBPF Practical Tutorial: Capturing SSL/TLS Plain Text Data Using uprobe
    3 projects | dev.to | 19 Sep 2023
  • OpenSSL Versions... whats the plan here
    1 project | /r/Ubuntu | 19 Aug 2023
    I confirmed that the systm was on 1.1.1f with openssl version command. Hmm...... I check the openssl version in the repo with apt list... LOL package names wernt helpful. finally went to the repo pages and found that its still on 1.1.1f, https://launchpad.net/ubuntu/+source/openssl. Meenwhile I looked up the version history on https://www.openssl.org/ and saw that 1.1.1v was released at the beginning of this month... ok. I can understand it it was out less then 30 days. I looked up when f came out, end of MARCH 2020. NEARLY 3-1/2 YEARS
  • I am looking for a troubled/bad open source codebase
    13 projects | /r/ExperiencedDevs | 12 Jul 2023

ring

Posts with mentions or reviews of ring. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-12.
  • AWS Libcrypto for Rust
    3 projects | news.ycombinator.com | 12 Jan 2024
    Again, this is just a temporary situation, and a matter of burning down a list of small tasks. Not that the OpenSSL license issue is a big deal for most anyway. Feel free to help; see this issue filed by Josh Triplett: https://github.com/briansmith/ring/issues/1318#issuecomment-...
  • Boletín AWS Open Source, Christmas Edition
    9 projects | dev.to | 24 Dec 2023
  • Libsodium: A modern, portable, easy to use crypto library
    9 projects | news.ycombinator.com | 14 Sep 2023
  • A brief guide to choosing TLS crates
    5 projects | /r/rust | 9 Jun 2023
    Note also that rustls depends on ring, which has architecture-dependent code in it that is not as widely compatible as eg. OpenSSL/GnuTLS/Mbed-TLS. For example, MIPS is not supported by ring.
  • Data-driven performance optimization with Rust and Miri
    9 projects | news.ycombinator.com | 9 Dec 2022
  • Releasing Rust Binaries with GitHub Actions - Part 2
    2 projects | dev.to | 21 Nov 2022
    The AWS Rust library we were using as a dependency depended on a cryptography library called ring. This library leverages C and assembly code to implement its cryptographic primitives. Unfortunately, cross compiling when C is involved can add complexity to the build process. While it might've been possible to overcome these issues I decided that it wasn't worth digging into more.
  • Urgent Upcoming OpenSSL release patches critical vulnerability
    4 projects | news.ycombinator.com | 29 Oct 2022
    That'd be great. Thanks Brian. Re: making ring portable to all platforms: IBM have been graciously maintaining a up to date patchset for Ring for years now and there's an outstanding PR here you may not have seen since they filed it in 2020... https://github.com/briansmith/ring/pull/1057
  • OpenSSL Security Advisory [5 July 2022]
    6 projects | news.ycombinator.com | 5 Jul 2022
    Beyond the simple matter of Rust being much newer than OpenSSL, one concern for some cryptographic primitives is the timing side-channel.

    https://en.wikipedia.org/wiki/Timing_attack

    In high level languages like Rust, the compiler does not prioritise trying to emit machine code which executes in constant time for all inputs. OpenSSL has implementations for some primitives which are known to be constant time, which can be important.

    One option if you're working with Rust anyway would be use something like Ring:

    https://github.com/briansmith/ring

    Ring's primitives are just taken from BoringSSL which is Google's fork of OpenSSL, they're a mix of C and assembly language, it's possible (though fraught) to write some constant time algorithms in C if you know which compiler will be used, and of course it's possible (if you read the performance manuals carefully) to write constant time assembly in many cases.

    In the C / assembly language code of course you do not have any safety benefits.

    It can certainly make sense to do this very tricky primitive stuff in dangerous C or assembly, but then write all the higher level stuff in Rust, and that's the sort of thing Ring is intended for. BoringSSL for example includes code to do X.509 parsing and signature validation in C, but those things aren't sensitive, a timing attack on my X.509 parsing tells you nothing of value, and it's complicated to do correctly so Rust could make sense.

  • Rust's Option and Result. In Python.
    6 projects | /r/rust | 25 Jun 2022
    machine learning, neural networks, image processing, cryptography (though it is getting better), font shaping/rendering (though it is getting better), CPU/software rendering (though it is getting better)
  • Mega: Malleable Encryption Goes Awry
    2 projects | news.ycombinator.com | 21 Jun 2022

What are some alternatives?

When comparing OpenSSL and ring you can also consider the following projects:

GnuTLS - GnuTLS

rust-crypto - A (mostly) pure-Rust implementation of various cryptographic algorithms.

Crypto++ - free C++ class library of cryptographic schemes

ed25519-dalek - Fast and efficient ed25519 signing and verification in Rust.

mbedTLS - An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.

rust-openssl - OpenSSL bindings for Rust

libsodium - A modern, portable, easy to use crypto library.

orion - Usable, easy and safe pure-Rust crypto [Moved to: https://github.com/orion-rs/orion]

LibreSSL - LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to [email protected] are welcome.

rustls - A modern TLS library in Rust

cfssl - CFSSL: Cloudflare's PKI and TLS toolkit

sodiumoxide - [DEPRECATED] Sodium Oxide: Fast cryptographic library for Rust (bindings to libsodium)