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§
Sourcefn decrypt_with_nonce(
key: &Key,
nonce: &XNonce,
encrypted: &E,
) -> Result<Self, CryptError>where
E: Ciphertext,
Self: ProstDecode,
fn decrypt_with_nonce(
key: &Key,
nonce: &XNonce,
encrypted: &E,
) -> Result<Self, CryptError>where
E: Ciphertext,
Self: ProstDecode,
Decrypt ciphertext using a provided nonce.