pub fn SetupPSKR(
config: HPKEConfig,
enc: &ByteSeq,
skR: &HpkePrivateKey,
info: &Info,
psk: &Psk,
psk_id: &PskId
) -> ContextResult
Expand description
Authentication using a Pre-Shared Key - Receiver
See SetupPSKS
for more details.
def SetupPSKR(enc, skR, info, psk, psk_id):
shared_secret = Decap(enc, skR)
return KeyScheduleR(mode_psk, shared_secret, info, psk, psk_id)