Trait DecryptableWithNonce

Source
pub trait DecryptableWithNonce<E> {
    // Provided method
    fn decrypt_with_nonce(
        key: &Key,
        nonce: &XNonce,
        encrypted: &E,
    ) -> Result<Self, CryptError>
       where E: Ciphertext,
             Self: ProstDecode { ... }
}
Expand description

Decryptable when provided with an explicit nonce.

For cases where the nonce is provided separately from the ciphertext.

Provided Methods§

Source

fn decrypt_with_nonce( key: &Key, nonce: &XNonce, encrypted: &E, ) -> Result<Self, CryptError>
where E: Ciphertext, Self: ProstDecode,

Decrypt ciphertext using a provided nonce.

Implementations on Foreign Types§

Source§

impl DecryptableWithNonce<MessageVault> for Message

Implementors§