5 releases

0.1.0 Feb 28, 2022
0.1.0-pre.4 Feb 25, 2022
0.1.0-pre.3 Feb 23, 2022
0.1.0-pre.2 Feb 4, 2022
0.1.0-pre.1 Feb 3, 2022

#759 in Cryptography

Download history 653/week @ 2022-08-13 77/week @ 2022-08-20 21/week @ 2022-08-27 135/week @ 2022-09-03 39/week @ 2022-09-10 23/week @ 2022-09-17 31/week @ 2022-09-24 37/week @ 2022-10-01 20/week @ 2022-10-08 23/week @ 2022-10-15 39/week @ 2022-10-22 72/week @ 2022-10-29 42/week @ 2022-11-05 26/week @ 2022-11-12 35/week @ 2022-11-19 28/week @ 2022-11-26

146 downloads per month
Used in 5 crates

MIT license

25KB
491 lines

OpenMLS Traits

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

The OpenMLS repository provides two default implementations 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.

Traits

There are 4 different traits.

OpenMlsRand

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

OpenMlsCrypto

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

  • HKDF
  • Hashing
  • AEAD
  • Signatures
  • HPKE

OpenMlsKeyStore

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

OpenMlsCryptoProvider

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

Types

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

Dependencies

~0.6–1.1MB
~24K SLoC