diff --git a/Cargo.toml b/Cargo.toml index 3aef850..1525e5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ sha2 = "0.10.1" openssl = {version = "0.10.38", optional = true} # pure rust aes -aes-gcm = {version = "0.9.4", optional = true} +aes-gcm = {version = "0.10.1", optional = true} typenum = {version = "1.14.0", optional = true} [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/src/pure_aes.rs b/src/pure_aes.rs index 8c2bd43..0041339 100644 --- a/src/pure_aes.rs +++ b/src/pure_aes.rs @@ -1,5 +1,5 @@ -use aes_gcm::aead::{generic_array::GenericArray, AeadInPlace, NewAead}; -use aes_gcm::{aes::Aes256, AesGcm}; +use aes_gcm::aead::{generic_array::GenericArray, AeadInPlace}; +use aes_gcm::{aes::Aes256, AesGcm, KeyInit}; use rand::{thread_rng, Rng}; use typenum::consts::U16;