pub trait Decryptable {
// Required methods
fn get_ct(&self) -> &str;
fn get_adata_str(&self) -> String;
fn get_cipher(&self) -> &Cipher;
}Expand description
Trait implemented by any decrypt-able type (paste or comment)
Required Methods§
Sourcefn get_ct(&self) -> &str
fn get_ct(&self) -> &str
Get ciphertext. We prefer to borrow this and not copy, because ct may be large.
Sourcefn get_adata_str(&self) -> String
fn get_adata_str(&self) -> String
Additional authenticated (but not encrypted) data. Sensitive to formatting changes.
Sourcefn get_cipher(&self) -> &Cipher
fn get_cipher(&self) -> &Cipher
Cipher parameters
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".