rustls::crypto::hpke

Trait HpkeOpener

Source
pub trait HpkeOpener:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn open(&mut self, aad: &[u8], ciphertext: &[u8]) -> Result<Vec<u8>, Error>;
}
Expand description

An HPKE opener context.

This is a stateful object that can be used to open sealed messages sealed by a sender.

Required Methods§

Source

fn open(&mut self, aad: &[u8], ciphertext: &[u8]) -> Result<Vec<u8>, Error>

Open the provided ciphertext with additional data aad, returning plaintext.

Implementors§