[s2n-bignum]: https://github.com/awslabs/s2n-bignum
[migrating]: https://github.com/kixel-ai/rind/blob/main/MIGRATING.md
[benchmarks]: https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md
[gaps]: https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md#known-gaps
[comparison]: https://github.com/kixel-ai/rind/blob/main/README.md#compared-with-the-alternatives
[build-cost]: https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md#build-cost
[verified]: https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md#verified-code
[proofs]: https://github.com/kixel-ai/rind/blob/main/proofs/README.md

# rind

**Cryptography slop. Fast, somewhat formally verified, and in pure Rust.**
A drop-in for ring, aws-lc-rs, and rustls.

## 🏎️ [As fast as aws-lc-rs and ring.](https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md)

rind matches or beats both on
[nearly every operation][benchmarks] TLS and QUIC run, from the handshake
to each packet's AEAD.

## 🛡️ [Verified where it counts.](https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md#verified-code)

On x86_64 and aarch64, rind's
elliptic-curve, RSA, ML-KEM, and ML-DSA arithmetic builds on [s2n-bignum]'s
formally verified assembly, and rind's own [Lean proofs][proofs] carry
X25519 and Ed25519 from its API down to it, as [Verified code][verified]
lists.

## 🦀 [No C toolchain.](https://github.com/kixel-ai/rind/blob/main/BENCHMARKS.md#build-cost)

rind's assembly lives in Rust source: no C
compiler, cmake, nasm, or perl, for the host or a cross target. A rustls
client builds [faster][build-cost] over rind than over aws-lc-rs or ring.

## Switch with an agent

Paste this into your coding agent, in your repository:

```text
Move this repository from ring or aws-lc-rs to rind, following
https://raw.githubusercontent.com/kixel-ai/rind/main/MIGRATE.md
```

It migrates on a local branch, reports the build time, binary size,
benchmarks, and tests before and after, and asks before opening a PR or
filing an issue. To migrate by hand, [MIGRATING.md][migrating] maps each
ring and aws-lc-rs item to rind's.

## Before you depend on it

rind was written with AI coding agents, and no one outside the project has
audited it. It is not FIPS 140-3 validated. [The comparison][comparison]
lists what the established libraries have that rind lacks, and where another
library is faster, [Known gaps][gaps] says why and what closes it.

## Links

- [GitHub](https://github.com/kixel-ai/rind)
- [crates.io](https://crates.io/crates/rind)
- [docs.rs](https://docs.rs/rind/)
- [Launch post](https://moq.dev/blog/rind/)
- [MoQ](https://moq.dev)

Built by [Kixel](https://kixel.ai).
