Skip to main content

AeadCore

Trait AeadCore 

Source
pub trait AeadCore {
    type NonceSize: ArraySize;
    type TagSize: ArraySize;

    const TAG_POSITION: TagPosition;
}
Expand description

Authenticated Encryption with Associated Data (AEAD) algorithm.

Required Associated Constants§

Source

const TAG_POSITION: TagPosition

The AEAD tag position.

Required Associated Types§

Source

type NonceSize: ArraySize

The length of a nonce.

Source

type TagSize: ArraySize

The maximum length of the tag.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C, N> AeadCore for ChaChaPoly1305<C, N>
where N: ArraySize,

Source§

const TAG_POSITION: TagPosition = TagPosition::Postfix

Source§

type NonceSize = N

Source§

type TagSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>