safe_decrypt_with_label

Function safe_decrypt_with_label 

Source
pub fn safe_decrypt_with_label(
    private_key: &[u8],
    ciphertext: &HpkeCiphertext,
    ciphersuite: Ciphersuite,
    context: SafeEncryptionContext<'_>,
    crypto: &impl OpenMlsCrypto,
) -> Result<Vec<u8>, Error>
Available on (32-bit or 64-bit) and crate feature extensions-draft-08 only.
Expand description

Decrypt the provided ciphertext with the private_key. The SafeEncryptionContext is used to set the ComponentId, label, and optional context.

Returns an HpkeCiphertext or an Error.