10 releases

0.2.0 Jul 20, 2023
0.2.0-pre.3 Jun 22, 2023
0.2.0-pre.1 May 31, 2023
0.1.0 Feb 28, 2022

#1449 in Cryptography

Download history 5/week @ 2024-01-08 4/week @ 2024-02-12 90/week @ 2024-02-19 32/week @ 2024-02-26 17/week @ 2024-03-04 24/week @ 2024-03-11 14/week @ 2024-03-18 7/week @ 2024-03-25 41/week @ 2024-04-01 20/week @ 2024-04-08 18/week @ 2024-04-15

87 downloads per month
Used in 6 crates

MIT license

565 lines

OpenMLS Traits

This crate defines a number of crates that have to be implemented in order to use OpenMLS.

The OpenMLS repository provides a default implementation for these traits

⚠️ These traits are responsible for all cryptographic operations and randomness within OpenMLS. Please ensure you know what you're doing when implementing your own versions.


There are 4 different traits.


This trait defines two functions to generate arrays and vectors, and is used by OpenMLS to generate randomness.


This trait defines all cryptographic functions required by OpenMLS, in particular

  • HKDF
  • Hashing
  • AEAD
  • Signatures
  • HPKE


This trait defines a CRUD API for a key store that is used to store long-term key material from OpenMLS.


Additionally, there's a wrapper trait defined that is expected to be passed into the public OpenMLS API.


For interoperability this crate also defines a number of types and algorithm identifiers.


~26K SLoC