pub trait CekRecovery {
// Required method
fn recover_cek(
&self,
envelope: &StreamKemEnvelope,
aad: &[u8],
) -> impl Future<Output = StreamResult<Zeroizing<Vec<u8>>>> + Send;
}Expand description
Recovers the content-encryption key from a stream’s ML-KEM envelope.
Implementations recover the CEK exactly once per stream and must fail closed on any error.
Required Methods§
Sourcefn recover_cek(
&self,
envelope: &StreamKemEnvelope,
aad: &[u8],
) -> impl Future<Output = StreamResult<Zeroizing<Vec<u8>>>> + Send
fn recover_cek( &self, envelope: &StreamKemEnvelope, aad: &[u8], ) -> impl Future<Output = StreamResult<Zeroizing<Vec<u8>>>> + Send
Recover the wrapped CEK from envelope, authenticating aad.
§Errors
Returns a StreamError for a wrong recipient key, a tampered envelope,
or a broker/transport failure.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".