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
Provided methods
fn random_nonce() -> GenericArray<u8, Self::NonceSize>
fn random_nonce() -> GenericArray<u8, Self::NonceSize>
Generate a new random nonce
Implementors
impl<C> KeyAeadMeta for AesKey<AesKeyWrap<C>> where
AesKeyWrap<C>: AesType,
This is supported on crate feature
aes only.impl<C, D> KeyAeadMeta for AesKey<AesCbcHmac<C, D>> where
AesCbcHmac<C, D>: AesType,
C: BlockCipher + NewBlockCipher,
This is supported on crate feature
aes only.impl<T: AeadInPlace + AesType> KeyAeadMeta for AesKey<T>
This is supported on crate feature
aes only.