跳到主要内容

HpkeSealer

搜索

特性 HpkeSealer 

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

HPKE sealer 上下文

This 是 stateful object that 可用于 seal messages 用于 receipt by 一个 receiver.

必需方法§

Source

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

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

实现者§