Trait askar_crypto::encrypt::KeyAeadMeta[][src]

pub trait KeyAeadMeta {
    type NonceSize: ArrayLength<u8>;
    type TagSize: ArrayLength<u8>;
    fn random_nonce() -> GenericArray<u8, Self::NonceSize> { ... }
}
Expand description

For concrete key types with fixed nonce and tag sizes

Associated Types

type NonceSize: ArrayLength<u8>[src]

Expand description

The size of the AEAD nonce

type TagSize: ArrayLength<u8>[src]

Expand description

The size of the AEAD tag

Loading content...

Provided methods

fn random_nonce() -> GenericArray<u8, Self::NonceSize>[src]

Expand description

Generate a new random nonce

Loading content...

Implementors

impl<T: AesAead> KeyAeadMeta for AesKey<T>[src]

This is supported on crate feature aes only.

type NonceSize = <T as AesAead>::NonceSize

type TagSize = <T as AesAead>::TagSize

impl<T: Chacha20Type> KeyAeadMeta for Chacha20Key<T>[src]

This is supported on crate feature chacha only.

type NonceSize = <<T as Chacha20Type>::Aead as Aead>::NonceSize

type TagSize = <<T as Chacha20Type>::Aead as Aead>::TagSize

Loading content...