[][src]Enum dup_crypto::private_message::Algorithm

pub enum Algorithm {
    Aes256Gcm,
    Chacha20Poly1305,
}

Private message encryption algorithm If your program is susceptible to running on machines that do not provide hardware acceleration for AES (some phones, embedded devices, old computers, etc) then you should choose Chacha20Poly1305. Even on devices with hardware acceleration for AES, the performance of Chacha20Poly1305 is often equivalent to Aes256Gcm, so only choose Aes256Gcm if you have strong reasons to do so.

Variants

Aes256Gcm

AES-256 in GCM mode with 128-bit tags and 96 bit nonces.

Chacha20Poly1305

ChaCha20-Poly1305 as described in RFC 7539.

Trait Implementations

impl Clone for Algorithm[src]

impl Copy for Algorithm[src]

impl Debug for Algorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.