Module byztimed::aead[][src]

Convenience wrapper around the aead and aes_siv crates

Structs

LengthMismatchError

Error returned by GenericArrayExt methods if the slice passed in is the wrong length.

Payload

AEAD payloads are a combination of a message (plaintext or ciphertext) and “additional associated data” (AAD) to be authenticated (in cleartext) along with the message.

Traits

Aead

Authenticated Encryption with Associated Data (AEAD) algorithm.

GenericArrayExt

Annoyingly, GenericArray’s from_slice constructors panic if the slice is the wrong length. This extension trait adds methods that catch the panic and return an error result instead.

NewAead

Instantiate either a stateless Aead or stateful AeadMut algorithm.

Functions

keygen

Type Definitions

Aes128SivAead

AES-CMAC-SIV in AEAD mode with 256-bit key size (128-bit security)

Aes128SivKey
Aes128SivNonce
Aes256SivAead

AES-CMAC-SIV in AEAD mode with 512-bit key size (256-bit security)

Aes256SivKey
Aes256SivNonce