Function hpke::SetupBaseR
source · [−]pub fn SetupBaseR(
config: HPKEConfig,
enc: &ByteSeq,
skR: &HpkePrivateKey,
info: &Info
) -> ContextResult
Expand description
Encryption to a Public Key - Receiver
See SetupBaseS
for more details.
def SetupBaseR(enc, skR, info):
shared_secret = Decap(enc, skR)
return KeyScheduleR(mode_base, shared_secret, info,
default_psk, default_psk_id)