Skip to main content

aggregate_partials_with

Function aggregate_partials_with 

Source
pub fn aggregate_partials_with(
    partials: &[PartialDecryption],
    threshold: u32,
    blob: &EncryptedBlob,
    algorithm: AeadAlgorithm,
) -> Result<Vec<u8>, EciesError>
Expand description

Aggregate T partial decryptions with an explicit AEAD choice.

Must match the algorithm used at encryption time; the derivation is domain-separated per algorithm, so the mismatch fails at AEAD.