#[repr(u16)]
pub enum Ciphersuite {
    MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519,
    MLS_128_DHKEMP256_AES128GCM_SHA256_P256,
    MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519,
    MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448,
    MLS_256_DHKEMP521_AES256GCM_SHA512_P521,
    MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448,
    MLS_256_DHKEMP384_AES256GCM_SHA384_P384,
}
Expand description

MLS ciphersuites.

Variants

MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519

DH KEM x25519 | AES-GCM 128 | SHA2-256 | Ed25519

MLS_128_DHKEMP256_AES128GCM_SHA256_P256

DH KEM P256 | AES-GCM 128 | SHA2-256 | EcDSA P256

MLS_128_DHKEMX25519_CHACHA20POLY1305_SHA256_Ed25519

DH KEM x25519 | Chacha20Poly1305 | SHA2-256 | Ed25519

MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448

DH KEM x448 | AES-GCM 256 | SHA2-512 | Ed448

MLS_256_DHKEMP521_AES256GCM_SHA512_P521

DH KEM P521 | AES-GCM 256 | SHA2-512 | EcDSA P521

MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448

DH KEM x448 | Chacha20Poly1305 | SHA2-512 | Ed448

MLS_256_DHKEMP384_AES256GCM_SHA384_P384

DH KEM P384 | AES-GCM 256 | SHA2-384 | EcDSA P384

Implementations

Get the HashType for this Ciphersuite

Get the SignatureScheme for this Ciphersuite.

Get the AeadType for this Ciphersuite.

Get the HpkeKdfType for this Ciphersuite.

Get the HpkeKemType for this Ciphersuite.

Get the HpkeAeadType for this Ciphersuite.

Get the HpkeConfig for this Ciphersuite.

Get the length of the used hash algorithm.

Get the length of the AEAD tag.

Returns the key size of the used AEAD.

Returns the length of the nonce of the AEAD.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This function deserializes the bytes from the provided a std::io::Read and returns the populated struct. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Serialize self and write it to the writer. The function returns the number of bytes written to writer. Read more

Serialize self and return it as a byte vector.

Serialize self and write it to the writer. The function returns the number of bytes written to writer. Read more

Serialize self and return it as a byte vector.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.