From c26c4d89439069cc218f9000355e2bbf1216cbb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:04:45 +0900 Subject: [PATCH] Update aes-gcm requirement from 0.9.4 to 0.10.1 (#88) * Update aes-gcm requirement from 0.9.4 to 0.10.1 Updates the requirements on [aes-gcm](https://github.com/RustCrypto/AEADs) to permit the latest version. - [Release notes](https://github.com/RustCrypto/AEADs/releases) - [Commits](https://github.com/RustCrypto/AEADs/compare/aes-gcm-v0.9.4...aes-gcm-v0.10.1) --- updated-dependencies: - dependency-name: aes-gcm dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update pure_aes.rs Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Weiliang Li --- Cargo.toml | 2 +- src/pure_aes.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;