-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp configuration and add xchacha20-poly1305 backend (#104)
Co-authored-by: drp4rad0x <[email protected]>
- Loading branch information
Showing
16 changed files
with
349 additions
and
281 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ecies" | ||
version = "0.2.4" | ||
version = "0.2.5" | ||
# docs | ||
authors = ["Weiliang Li <[email protected]>"] | ||
description = "Elliptic Curve Integrated Encryption Scheme for secp256k1 in Rust" | ||
|
@@ -21,16 +21,19 @@ repository = "https://github.com/ecies/rs" | |
|
||
[dependencies] | ||
hkdf = "0.12.3" | ||
libsecp256k1 = "0.7.1" | ||
libsecp256k1 = {version = "0.7.1", default-features = false, features = ["static-context"]} | ||
once_cell = "1.18.0" | ||
sha2 = "0.10.7" | ||
|
||
# openssl aes | ||
openssl = {version = "0.10.55", optional = true} | ||
|
||
# pure rust aes | ||
aes-gcm = {version = "0.10.2", optional = true} | ||
typenum = {version = "1.16.0", optional = true} | ||
aes-gcm = {version = "0.10.2", default-features = false, optional = true} | ||
typenum = {version = "1.16.0", default-features = false, optional = true} | ||
|
||
# chacha20 cipher | ||
chacha20poly1305 = {version = "0.10.1", default-features = false, optional = true} | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
getrandom = {version = "0.2.10", features = ["js"]} | ||
|
@@ -41,9 +44,10 @@ rand = {version = "0.8.5"} | |
|
||
[features] | ||
default = ["openssl"] | ||
pure = ["aes-gcm", "typenum"] | ||
# default: 16 bytes | ||
aes_12bytes_nonce = [] | ||
|
||
aes-12bytes-nonce = [] # with feature "openssl" or "pure". default: 16 bytes | ||
pure = ["aes-gcm/aes", "typenum"] | ||
xchacha20 = ["chacha20poly1305/std"] | ||
|
||
[dev-dependencies] | ||
criterion = {version = "0.5.1", default-features = false} | ||
|
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.