Function hpke::HpkeOpen

source · []
pub fn HpkeOpen(
    config: HPKEConfig,
    ctxt: &HPKECiphertext,
    skR: &HpkePrivateKey,
    info: &Info,
    aad: &AdditionalData,
    psk: Option<Psk>,
    psk_id: Option<PskId>,
    pkS: Option<HpkePublicKey>
) -> HpkeByteSeqResult
Expand description

Decryption

See HpkeSeal for more details.

def Open<MODE>(enc, skR, info, aad, ct, ...):
  ctx = Setup<MODE>R(enc, skR, info, ...)
  return ctx.Open(aad, ct)

This function takes the <MODE> as argument in HPKEConfig.