From 116c1b9ee5775534c17cbaea853b3e9bee758b75 Mon Sep 17 00:00:00 2001 From: Weikeng Chen Date: Sat, 22 Oct 2022 22:10:26 -0700 Subject: [PATCH] Allow the aes-gcm new version (#177) Co-authored-by: onewayfunc --- api/Cargo.toml | 2 +- api/src/anon_xfr/keys.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Cargo.toml b/api/Cargo.toml index 934cf197..695e04ee 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -31,7 +31,7 @@ crate-type = ['rlib'] [dependencies] aes = '0.8.1' -aes-gcm = '=0.10.0-pre' +aes-gcm = '0.10.1' bincode = '1.3.1' bulletproofs = "2.0" digest = '0.10' diff --git a/api/src/anon_xfr/keys.rs b/api/src/anon_xfr/keys.rs index 4cf31d78..285673d1 100644 --- a/api/src/anon_xfr/keys.rs +++ b/api/src/anon_xfr/keys.rs @@ -1,4 +1,4 @@ -use aes_gcm::{aead::Aead, NewAead}; +use aes_gcm::{aead::Aead, KeyInit}; use digest::{generic_array::GenericArray, Digest}; use noah_algebra::secp256k1::{SECP256K1Scalar, SECP256K1G1, SECP256K1_SCALAR_LEN}; use noah_algebra::{bls12_381::BLSScalar, prelude::*};