Upgrade chacha20poly1305 dependency to version 0.10

Also upgrade  the `chacha20`, `cipher`, and `subtle` dependency
versions.


Extracted from: 72b5e6dfc3
This commit is contained in:
Kris Nuttycombe 2022-09-16 12:18:50 -06:00
parent 61a2c3ef72
commit 1ec4b356ad
2 changed files with 7 additions and 8 deletions

View File

@ -19,11 +19,12 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
chacha20 = { version = "0.8", default-features = false }
chacha20poly1305 = { version = "0.9", default-features = false }
cipher = { version = "0.4", default-features = false }
chacha20 = { version = "0.9", default-features = false }
chacha20poly1305 = { version = "0.10", default-features = false }
group = "0.12"
rand_core = { version = "0.6", default-features = false }
subtle = { version = "2.2.3", default-features = false }
subtle = { version = "2.3", default-features = false }
[dev-dependencies]
ff = { version = "0.12", default-features = false }

View File

@ -25,13 +25,11 @@ extern crate alloc;
use alloc::vec::Vec;
use chacha20::{
cipher::{NewCipher, StreamCipher, StreamCipherSeek},
cipher::{StreamCipher, StreamCipherSeek},
ChaCha20,
};
use chacha20poly1305::{
aead::{AeadInPlace, NewAead},
ChaCha20Poly1305,
};
use chacha20poly1305::{aead::AeadInPlace, ChaCha20Poly1305, KeyInit};
use cipher::KeyIvInit;
use rand_core::RngCore;
use subtle::{Choice, ConstantTimeEq};