Trait ring_compat::aead::AeadCore[][src]

pub trait AeadCore {
    type NonceSize: ArrayLength<u8>;
    type TagSize: ArrayLength<u8>;
    type CiphertextOverhead: ArrayLength<u8> + Unsigned;
}
This is supported on crate feature aead only.

Authenticated Encryption with Associated Data (AEAD) algorithm core trait.

Defines nonce, tag, and overhead sizes that are consumed by various other Aead* traits.

Associated Types

type NonceSize: ArrayLength<u8>[src]

The length of a nonce.

type TagSize: ArrayLength<u8>[src]

The maximum length of the nonce.

type CiphertextOverhead: ArrayLength<u8> + Unsigned[src]

The upper bound amount of additional space required to support a ciphertext vs. a plaintext.

Loading content...

Implementors

impl AeadCore for Aes128Gcm[src]

type NonceSize = U12

type TagSize = U16

type CiphertextOverhead = U0

impl AeadCore for Aes256Gcm[src]

type NonceSize = U12

type TagSize = U16

type CiphertextOverhead = U0

impl AeadCore for ChaCha20Poly1305[src]

type NonceSize = U12

type TagSize = U16

type CiphertextOverhead = U0

Loading content...