Enum safe_app::ffi::cipher_opt::CipherOpt [] [src]

pub enum CipherOpt {
    PlainText,
    Symmetric,
    Asymmetric {
        peer_encrypt_key: PublicKey,
    },
}

Cipher Options

Variants

No encryption

Encrypt using symmetric keys (usually for private data)

Encrypt using asymmetric encryption (encrypting for peer to read)

Fields of Asymmetric

PublicKey of the peer to whom we want to encrypt

Methods

impl CipherOpt
[src]

[src]

Encrypt plain text

[src]

Decrypt something encrypted by CipherOpt::encrypt()

Trait Implementations

impl Debug for CipherOpt
[src]

[src]

Formats the value using the given formatter.