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
Provided methods
fn random_nonce() -> GenericArray<u8, Self::NonceSize>
[src]
Expand description
Generate a new random nonce
Implementors
impl<T: AesAead> KeyAeadMeta for AesKey<T>
[src]
impl<T: AesAead> KeyAeadMeta for AesKey<T>
[src]This is supported on crate feature
aes
only.impl<T: Chacha20Type> KeyAeadMeta for Chacha20Key<T>
[src]
impl<T: Chacha20Type> KeyAeadMeta for Chacha20Key<T>
[src]This is supported on crate feature
chacha
only.