feat: ecdh encrypt

This commit is contained in:
2023-09-30 00:23:20 +08:00
parent 86c0ed7230
commit c317a80119
7 changed files with 92 additions and 206 deletions

View File

@@ -8,7 +8,6 @@ description = "A simple and tiny file encrypt tool"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
aes-gcm = { version = "0.10.1", features = ["zeroize"] }
aes-gcm-stream = "0.2.0"
base64 = "0.21.0"
chrono = "0.4.23"
@@ -17,14 +16,13 @@ flate2 = "1.0.27"
hex = "0.4.3"
openpgp-card = "0.3.7"
openpgp-card-pcsc = "0.3.0"
p256 = { version = "0.13.2", features = ["pem", "ecdh"] }
p256 = { version = "0.13.2", features = ["pem", "ecdh", "pkcs8"] }
rand = "0.8.5"
reqwest = { version = "0.11.14", features = ["blocking", "rustls", "rustls-tls"] }
rpassword = "7.2.0"
rsa = { version = "0.9.2", features = ["pem"] }
rust_util = "0.6.42"
serde = { version = "1.0.152", features = ["derive"] }
serde-hjson = "0.9.1"
serde_json = "1.0.93"
sha256 = "1.4.0"
simpledateformat = "0.1.4"