Module crypto

Source

Structs§

CipherSuite
Wrapper type representing a ciphersuite identifier along with default values defined by the MLS RFC. Custom ciphersuites can be defined using a custom CryptoProvider.
HpkeCiphertext
Ciphertext produced by CipherSuiteProvider::hpke_seal
HpkePublicKey
Byte representation of an HPKE public key. For ciphersuites using elliptic curves, the public key should be represented in the uncompressed format.
HpkeSecretKey
Byte representation of an HPKE secret key.
SignaturePublicKey
Byte representation of a signature public key. For ciphersuites using elliptic curves, the public key should be represented in the uncompressed format.
SignatureSecretKey
Byte representation of a signature key.

Enums§

HpkeModeId
Modes of HPKE operation.

Traits§

CipherSuiteProvider
Provides all cryptographic operations required by MLS for a given cipher suite.
CryptoProvider
Provides implementations for several ciphersuites via CipherSuiteProvider.
HpkeContextR
The HPKE context for receiver outputted by hpke_setup_r. The context internally stores secrets received from the sender by hpke_setup_r.
HpkeContextS
The HPKE context for sender outputted by hpke_setup_s. The context internally stores the secrets generated by hpke_setup_s.