#[non_exhaustive]pub enum SuiteId {
HyKemX25519MlKem768,
}Expand description
A pinned hybrid-KEM suite: an ordered set of component KEMs plus a stable id that is cryptographically bound into the combiner.
Adding a suite (e.g. a future …-McEliece6960119) is a single new variant —
no change to KemComponent or the combiner. Suite choice is policy-pinned
(epic #550 principle: crypto-agility = pinned suite, no in-band downgrade).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HyKemX25519MlKem768
X25519 + ML-KEM-768 — the 2-KEM baseline (#551).
Implementations§
Source§impl SuiteId
impl SuiteId
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Stable string id, bound into the KMAC customization string S.
Sourcepub fn as_u16(self) -> u16
pub fn as_u16(self) -> u16
Stable u16 wire id, bound into the combiner message X and the
HybridKemMaterial wire encoding.
Sourcepub fn components(self) -> &'static [KemId]
pub fn components(self) -> &'static [KemId]
The ordered component list. Order is part of the suite definition and is covered by the combiner — never reorder without minting a new suite id.
Trait Implementations§
impl Copy for SuiteId
impl Eq for SuiteId
impl StructuralPartialEq for SuiteId
Auto Trait Implementations§
impl Freeze for SuiteId
impl RefUnwindSafe for SuiteId
impl Send for SuiteId
impl Sync for SuiteId
impl Unpin for SuiteId
impl UnsafeUnpin for SuiteId
impl UnwindSafe for SuiteId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more