Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Mar 7, 2024
1 parent 7e5d7e8 commit 6bf5c0a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: ["1.69.0", stable, beta, nightly]
toolchain: ["1.70.0", stable, beta, nightly]
steps:
- uses: actions/checkout@v3

Expand Down
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ homepage = "https://ecies.org/rs/"
repository = "https://github.com/ecies/rs"

[dependencies]
hkdf = {version = "0.12.3", default-features = false}
hkdf = {version = "0.12.4", default-features = false}
sha2 = {version = "0.10.8", default-features = false}

# elliptic curves
libsecp256k1 = {version = "0.7.1", default-features = false, features = ["static-context"]}
# x25519-dalek = {version = "2.0.0", default-features = false, features = ["static_secrets"], optional = true}

# openssl aes
openssl = {version = "0.10.57", default-features = false, optional = true}
openssl = {version = "0.10.64", default-features = false, optional = true}

# pure rust aes
aes-gcm = {version = "0.10.3", default-features = false, optional = true}
Expand All @@ -38,22 +38,22 @@ typenum = {version = "1.17.0", default-features = false, optional = true}
chacha20poly1305 = {version = "0.10.1", default-features = false, optional = true}

# random number generator
getrandom = {version = "0.2.10", default-features = false}
getrandom = {version = "0.2.12", default-features = false}
rand_core = {version = "0.6.4", default-features = false, features = ["getrandom"]}

# configuration
once_cell = {version = "1.18.0", default-features = false}
once_cell = {version = "1.19.0", default-features = false}
parking_lot = "0.12.1"

[target.'cfg(all(target_arch = "wasm32", target_os="unknown"))'.dependencies]
# only for js (browser or node). if it's not js, like substrate, it won't build
getrandom = {version = "0.2.10", default-features = false, features = ["js"]}
once_cell = {version = "1.18.0", default-features = false, features = ["std"]}
wasm-bindgen = {version = "0.2.87", default-features = false}
getrandom = {version = "0.2.12", default-features = false, features = ["js"]}
once_cell = {version = "1.19.0", default-features = false, features = ["std"]}
wasm-bindgen = {version = "0.2.92", default-features = false}

[target.'cfg(all(target_arch = "wasm32", not(target_os="unknown")))'.dependencies]
# allows wasm32-wasi to build
once_cell = {version = "1.18.0", default-features = false, features = ["std"]}
once_cell = {version = "1.19.0", default-features = false, features = ["std"]}

[features]
default = ["openssl"]
Expand All @@ -74,12 +74,12 @@ criterion = {version = "0.4.0", default-features = false}
hex = {version = "0.4.3", default-features = false, features = ["alloc"]}

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.37"
wasm-bindgen-test = "0.3.42"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
futures-util = "0.3.29"
reqwest = "0.11.22"
tokio = {version = "1.33.0", features = ["rt-multi-thread"]}
futures-util = "0.3.30"
reqwest = "0.11.24"
tokio = {version = "1.36.0", features = ["rt-multi-thread"]}

[[bench]]
harness = false
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2023 Weiliang Li
Copyright (c) 2019-2024 Weiliang Li

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ pub struct Config {
}
```

If you set `is_ephemeral_key_compressed: true`, the payload would be like: `33 Bytes + AES` instead of `65 Bytes + AES`.
On `is_ephemeral_key_compressed: true`, the payload would be like: `33 Bytes + AES` instead of `65 Bytes + AES`.

If you set `is_hkdf_key_compressed: true`, the hkdf key would be derived from `ephemeral public key (compressed) + shared public key (compressed)` instead of `ephemeral public key (uncompressed) + shared public key (uncompressed)`.
On `is_hkdf_key_compressed: true`, the hkdf key would be derived from `ephemeral public key (compressed) + shared public key (compressed)` instead of `ephemeral public key (uncompressed) + shared public key (uncompressed)`.

```rust
use ecies::config::{Config, update_config};
Expand Down

0 comments on commit 6bf5c0a

Please sign in to comment.