pub trait HpkeContextS {
type Error: IntoAnyError;
// Required methods
fn seal(
&mut self,
aad: Option<&[u8]>,
data: &[u8],
) -> Result<Vec<u8>, Self::Error>;
fn export(
&self,
exporter_context: &[u8],
len: usize,
) -> Result<Vec<u8>, Self::Error>;
}
Expand description
The HPKE context for sender outputted by hpke_setup_s. The context internally stores the secrets generated by hpke_setup_s.
This trait corresponds to ContextS from RFC 9180.