Trait ring_compat::aead::AeadCore
source · pub trait AeadCore {
type NonceSize: ArrayLength<u8>;
type TagSize: ArrayLength<u8>;
type CiphertextOverhead: ArrayLength<u8> + Unsigned;
}
Available on crate feature
aead
only.Expand description
Authenticated Encryption with Associated Data (AEAD) algorithm core trait.
Defines nonce, tag, and overhead sizes that are consumed by various other
Aead*
traits.
Required Associated Types§
sourcetype NonceSize: ArrayLength<u8>
type NonceSize: ArrayLength<u8>
The length of a nonce.
sourcetype TagSize: ArrayLength<u8>
type TagSize: ArrayLength<u8>
The maximum length of the nonce.
sourcetype CiphertextOverhead: ArrayLength<u8> + Unsigned
type CiphertextOverhead: ArrayLength<u8> + Unsigned
The upper bound amount of additional space required to support a ciphertext vs. a plaintext.