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 87ae992
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 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.73.0", stable, beta, nightly]
steps:
- uses: actions/checkout@v3

Expand Down
16 changes: 8 additions & 8 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 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 87ae992

Please sign in to comment.