use stdlib xchacha20poly1305

This commit is contained in:
Edward Shen 2022-01-18 18:09:28 -08:00
parent 404d78c0ba
commit 111a9e9b98
Signed by: edward
GPG key ID: 19182661E818369F
2 changed files with 2 additions and 1 deletions

1
Cargo.lock generated
View file

@ -15,6 +15,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877"
dependencies = [ dependencies = [
"generic-array", "generic-array",
"rand_core",
] ]
[[package]] [[package]]

View file

@ -11,7 +11,7 @@ license = "MIT"
[dependencies] [dependencies]
base64 = "0.13" base64 = "0.13"
bytes = { version = "1", features = ["serde"] } bytes = { version = "1", features = ["serde"] }
chacha20poly1305 = { version = "0.9", features = ["stream"] } chacha20poly1305 = { version = "0.9", features = ["stream", "std"] }
chrono = { version = "0.4", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
headers = "0.3" headers = "0.3"
lazy_static = "1" lazy_static = "1"