Skip to main content

decrypt_eql_fallible

Function decrypt_eql_fallible 

pub async fn decrypt_eql_fallible<'a, C: Credentials<Token = ServiceToken>>(
    cipher: Arc<ScopedCipher<C>>,
    ciphertexts: impl IntoIterator<Item = EqlCiphertext>,
    opts: &EqlDecryptOpts<'a>,
) -> Result<Vec<Result<Plaintext, EqlError>>, EqlError>
Expand description

Like decrypt_eql but decryption failure of one or more ciphertexts does not fail the entire operation. Instead, a decryption result (success or failure) is returned for every ciphertext.

§Per-Item Errors

The following conditions produce per-item Err results without aborting:

  • Missing ciphertext (query-mode payload): Returns Err(EqlError::MissingCiphertext)
  • Decryption failure: Returns Err with the underlying decryption error

§Operation-Level Errors

Only a failure to retrieve the ServiceToken will result in the entire operation failing.