diff --git a/aead/src/lib.rs b/aead/src/lib.rs index cd358a88..f19290a1 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -74,7 +74,7 @@ pub trait NewAead { type KeySize: ArrayLength; /// Construct a new stateful instance for the given key. - fn new(key: GenericArray) -> Self; + fn new(key: &GenericArray) -> Self; } /// Authenticated Encryption with Associated Data (AEAD) algorithm.