Skip to content

Commit

Permalink
Merge pull request RustCrypto#124 from RustCrypto/aead/borrow-key
Browse files Browse the repository at this point in the history
aead: have NewAead borrow the key
  • Loading branch information
tarcieri committed May 23, 2020
2 parents ac59f82 + 11144cc commit f21a504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aead/src/lib.rs
Expand Up @@ -74,7 +74,7 @@ pub trait NewAead {
type KeySize: ArrayLength<u8>;

/// Construct a new stateful instance for the given key.
fn new(key: GenericArray<u8, Self::KeySize>) -> Self;
fn new(key: &GenericArray<u8, Self::KeySize>) -> Self;
}

/// Authenticated Encryption with Associated Data (AEAD) algorithm.
Expand Down

0 comments on commit f21a504

Please sign in to comment.