#specification #e2ee #mls #rfc-9420 #tlspl

mls-spec

This crate is a repository of MLS / RFC9420-related data structures

3 stable releases

Uses new Rust 2024

new 1.0.2 Apr 14, 2025
1.0.0 Apr 10, 2025

#409 in Cryptography

Download history 115/week @ 2025-04-07

115 downloads per month

MIT/Apache

185KB
5K SLoC

MLS Spec

Crates.io docs.rs

Description

This crate is a repository of MLS / RFC9420-related data structures.

It is designed to be used as a base for implementations, and contains all the wire-format related structures to be able to build a RFC9420-compliant implementation.

Documentation

Here: https://docs.rs/mls-spec

Details

All sensitive pieces of data are wrapped in a SensitiveBytes newtype, which takes care of being zeroization-on-drop and has constant-time equality checks using subtle to make a best-effort attempt at protecting against side-channel attacks.

There's also some definitions for the follwing drafted extensions, enabled by the matching feature:

The following drafts were modified by extrapolating the current status of mls-extensions and the current status of the respective drafts:

Additionally, this crate makes use of RustCrypto's tls_codec crate, and has a mls-rs compatibility layer (gated under the mls-rs-compat feature) that allows to transcode mls-spec to mls-rs types and vice-versa.

License

Licensed under either of these:

Dependencies

~2–8MB
~62K SLoC