rind

Run openmls on rind

rind-openmls is unreleased: this page describes it as main has it. Until its first release, take it from git at the commit this page describes. Beside the lines below, add this line under the [patch.crates-io] table of your workspace's root Cargo.toml (add the table if it has none), then run cargo update -p rind-openmls:

rind-openmls = { git = "https://github.com/kixel-ai/rind", rev = "80fc7ba544b53a6ca9ab21ba9a946c275eb19a06" }

That moves every crate in your tree that depends on rind-openmls, and cargo tree -i rind-openmls then shows it from git+https://github.com/kixel-ai/rind.

This crate provides a crypto provider for OpenMLS, backed by rind, a fork of Graviola.

It offers exactly the API of openmls_rust_crypto, item for item, so replacing that dependency and its use lines is the whole migration:

[dependencies]
# In place of openmls_rust_crypto = "0.6".
rind-openmls = "0.6"
use rind_openmls::OpenMlsRustCrypto;

let provider = OpenMlsRustCrypto::default();

It offers the ciphersuites openmls_rust_crypto does: MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519, MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519, and MLS_128_DHKEMP256_AES128GCM_SHA256_P256. It signs and verifies with Ed25519 and ECDSA on P-256 and P-384, seals HPKE to X25519, P-256, and P-384, and draws randomness from the system's source.

What rind cannot back

Naming one of those features fails to resolve, and turning on openmls's own targeted-messages-draft or virtual-clients-draft fails to compile this crate, rather than failing at run time.

WebAssembly

It builds for wasm32-wasip2 and wasm32-unknown-unknown, the browser, where rind needs its JavaScript random source, getrandom = { version = "0.4", features = ["wasm_js"] }. PLATFORMS.md lists what each adapter's upstream needs there too, and why rind's constant-time checks do not cover wasm.

Switch with an agent

Paste this into your coding agent, in your repository:

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 maps each ring and aws-lc-rs item to rind's.

Other libraries