Function hpke::SendExport
source · [−]pub fn SendExport(
config: HPKEConfig,
pkR: &HpkePublicKey,
info: &Info,
exporter_context: &ByteSeq,
L: usize,
psk: Option<Psk>,
psk_id: Option<PskId>,
skS: Option<HpkePrivateKey>,
randomness: Randomness
) -> Result<HPKECiphertext, HpkeError>
Expand description
“single-shot” secret export sender
def SendExport<MODE>(pkR, info, exporter_context, L, ...):
enc, ctx = Setup<MODE>S(pkR, info, ...)
exported = ctx.Export(exporter_context, L)
return enc, exported