Skip to main content

auth_dec

Function auth_dec 

Source
pub fn auth_dec(
    sk: &MessagePrivateKey,
    pk: &MessagePublicKey,
    ct: &MessageCiphertext,
    ad: &[u8],
    info: &[u8],
) -> Result<Vec<u8>, Error>
Expand description

SD-APKE.AuthDec: decrypt ciphertext from sender.

  • sk = (skR1, skR2): recipient’s SD-APKE private key
  • pk = (pkS1, pkS2): sender’s SD-APKE public key
  • ad: associated data
  • info: caller-supplied info (spec prepends c2 internally: info = c2 + info)

§Errors

Returns an error if ML-KEM decapsulation or HPKE opening fails.