Skip to main content

encrypt_envelope

Function encrypt_envelope 

Source
pub fn encrypt_envelope(
    keys: &dyn KeyProvider,
    env: Envelope,
) -> Result<Envelope, CryptoError>
Expand description

Encrypt an envelope in place. The poison-pill fingerprint is derived from plaintext before the randomized nonce is introduced, so identical bad jobs still quarantine together without revealing their payload to the store.