Skip to main content

Decryptable

Trait Decryptable 

Source
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§

Source

fn get_ct(&self) -> &str

Get ciphertext. We prefer to borrow this and not copy, because ct may be large.

Source

fn get_adata_str(&self) -> String

Additional authenticated (but not encrypted) data. Sensitive to formatting changes.

Source

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".

Implementors§