Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(
    sk_r: &MetadataPrivateKey,
    ct: &MetadataCiphertext,
) -> Result<Vec<u8>, Error>
Expand description

SD-PKE.Dec: decrypt (c, c') using recipient key sk_r, returning message m.

ยงErrors

Returns an error if HPKE decryption fails.