Skip to main content

new_recipient

Function new_recipient 

Source
pub fn new_recipient<K: Kem, D: Kdf, A: Aead>(
    mode: &Mode<'_>,
    recipient_secret_key: &K::SecretKey,
    encapped_key: &K::EncappedKey,
    info: &[u8],
) -> Result<RecipientContext<A, D>, HpkeError>
Expand description

Sets up a recipient context (draft-ietf-hpke-hpke-05 Section 5.1).

ยงErrors