Trait aes_gcm::NewAead [−][src]
pub trait NewAead {
type KeySize: ArrayLength<u8>;
fn new(key: &GenericArray<u8, Self::KeySize>) -> Self;
fn new_from_slice(key: &[u8]) -> Result<Self, Error> { ... }
fn generate_key(
rng: impl CryptoRng + RngCore
) -> GenericArray<u8, Self::KeySize> { ... }
}
Associated Types
Required methods
Provided methods
Create new AEAD instance from key given as a byte slice..
Default implementation will accept only keys with length equal to KeySize
.