-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AArch64 SIMD intrinsics are available on stable since v1.59 https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html aes-gcm v0.10 aes-gcm-siv v0.11 ccm v0.5 chacha20poly1305 v0.10 chacha20 v0.9 aes v0.8 ctr v0.9 NOTE: ring-compat is still working on upgrading digest to v0.10
- Loading branch information
Showing
11 changed files
with
61 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "shadowsocks-crypto" | ||
version = "0.4.1" | ||
version = "0.5.0" | ||
authors = ["luozijun <[email protected]>", "ty <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -16,31 +16,31 @@ default = [ | |
"v1-aead", | ||
] | ||
v1 = [] | ||
v1-stream = ["v1", "chacha20", "aes"] | ||
v1-stream = ["v1", "chacha20", "aes", "ctr"] | ||
v1-aead = ["v1", "aes-gcm", "chacha20poly1305", "hkdf", "sha1"] | ||
v1-aead-extra = ["v1-aead", "aes-gcm-siv", "ccm", "aes"] | ||
v2 = ["aes", "aes-gcm", "blake3", "chacha20poly1305", "bytes"] | ||
v2-extra = ["v2", "chacha20poly1305/reduced-round"] | ||
|
||
ring = ["ring-compat"] | ||
armv8 = ["aes-gcm/armv8", "aes/armv8", "aes-gcm-siv/armv8"] | ||
neon = ["chacha20/neon"] | ||
|
||
[dependencies] | ||
cfg-if = "1.0" | ||
rand = "0.8" | ||
aes-gcm = { version = "0.9", optional = true } | ||
aes-gcm-siv = { version = "0.10.3", optional = true } | ||
ccm = { version = "0.4.4", optional = true } | ||
chacha20poly1305 = { version = "0.9", optional = true } | ||
ring-compat = { version = "0.4.1", optional = true } | ||
aes-gcm = { version = "0.10", optional = true } | ||
aes-gcm-siv = { version = "0.11", optional = true } | ||
ccm = { version = "0.5", optional = true } | ||
chacha20poly1305 = { version = "0.10", optional = true } | ||
# ring-compat = { version = "0.4.1", optional = true } | ||
ring-compat = { git = "https://github.com/RustCrypto/ring-compat.git", optional = true } | ||
md-5 = { version = "0.10" } | ||
hkdf = { version = "0.12", optional = true } | ||
sha1 = { version = "0.10", optional = true } | ||
blake3 = { version = "1.3", optional = true } | ||
chacha20 = { version = "0.8.1", optional = true } | ||
aes = { version = "0.7.5", features = ["ctr"], optional = true } | ||
bytes = { version = "1.1", optional = true } | ||
chacha20 = { version = "0.9", optional = true } | ||
aes = { version = "0.8", optional = true } | ||
ctr = { version = "0.9", optional = true } | ||
bytes = { version = "1.3", optional = true } | ||
|
||
#[target.'cfg(all(unix, any(target_arch = "x86", target_arch = "x86_64")))'.dependencies] | ||
#md-5 = { version = "0.10", features = ["asm"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters