跳到主要内容

HpkeOpener

特性 HpkeOpener 

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

HPKE opener 上下文

This 是 stateful object that 可用于 open sealed messages sealed by 一个 sender.

必需方法§

Source

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

Open the provided ciphertext with additional data aad, returning 明文.

实现者§