-
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.
Support non-standard AEAD ciphers with feature v1-aead-extra
- Enable new ciphers with v1-aead-extra - Support xchacha20-ietf-poly1305 with libsodium fixes #8
- Loading branch information
Showing
6 changed files
with
486 additions
and
111 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,26 +1,28 @@ | ||
[package] | ||
name = "shadowsocks-crypto" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
authors = ["luozijun <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
keywords = [ "Cryptography" ] | ||
description = "Shadowsocks Crypto" | ||
repository = "https://github.com/shadowsocks/shadowsocks-crypto" | ||
keywords = ["Cryptography"] | ||
description = "Shadowsocks Crypto" | ||
repository = "https://github.com/shadowsocks/shadowsocks-crypto" | ||
documentation = "https://docs.rs/shadowsocks-crypto" | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
||
[dependencies] | ||
rand = "0.8" | ||
rand = "0.8" | ||
crypto2 = "0.1" | ||
libsodium-sys = { version = "0.2", optional = true } | ||
libc = { version = "0.2", optional = true } | ||
|
||
|
||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] | ||
ring = { version = "0.16", optional = true } | ||
ring = { version = "0.16", optional = true } | ||
|
||
[target.'cfg(any(target_arch = "arm", target_arch = "aarch64"))'.dependencies] | ||
ring = { version = "0.16", optional = true } | ||
ring = { version = "0.16", optional = true } | ||
|
||
|
||
[dev-dependencies] | ||
|
@@ -36,7 +38,8 @@ default = [ | |
std = [ | ||
"crypto2/std", | ||
] | ||
nightly = [ ] | ||
v1 = [ ] | ||
v1-stream = [ "v1" ] | ||
v1-aead = [ "v1" ] | ||
nightly = [] | ||
v1 = [] | ||
v1-stream = ["v1"] | ||
v1-aead = ["v1"] | ||
v1-aead-extra = ["v1-aead", "libsodium-sys", "libc"] |
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
Oops, something went wrong.