Struct ring::aead::Aad[][src]

pub struct Aad<A: AsRef<[u8]>>(_);
Expand description

The additionally authenticated data (AAD) for an opening or sealing operation. This data is authenticated but is not encrypted.

The type A could be a byte slice &[u8], a byte array [u8; N] for some constant N, Vec<u8>, etc.

Implementations

Construct the Aad from the given bytes.

Construct an empty Aad.

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.