//! Cipher suite identifiers.
usecrate::error::{Error,Result};/// Reviewed cryptographic suite identifiers.
////// Suites are pinned at the protocol layer. Casual feature-flag combinations of
/// algorithms are intentionally not exposed.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]#[non_exhaustive]pubenumCipherSuite{/// ML-KEM-768 key wrapping with AES-256-GCM STREAM payload encryption.
MlKem768Aes256GcmV1,}implCipherSuite{/// Wire encoding used in object headers.
#[must_use]pubconstfnas_u16(self)->u16{matchself{Self::MlKem768Aes256GcmV1 =>1,}}/// Parse a wire suite identifier.
////// # Errors
////// Returns [`Error::UnsupportedSuite`] when the identifier is unknown.
pubfnfrom_u16(value:u16)->Result<Self>{match value {1=>Ok(Self::MlKem768Aes256GcmV1),
other =>Err(Error::UnsupportedSuite(other)),}}}